Class CompletionFieldMapper

All Implemented Interfaces:
Cloneable, Iterable<Mapper>, ToXContent, ToXContentFragment

public class CompletionFieldMapper extends FieldMapper
Mapper for completion field. The field values are indexed as a weighted FST for fast auto-completion/search-as-you-type functionality.
Type properties:
  • "analyzer": "simple", (default)
  • "search_analyzer": "simple", (default)
  • "preserve_separators" : true, (default)
  • "preserve_position_increments" : true (default)
  • "min_input_length": 50 (default)
  • "contexts" : CONTEXTS
see ContextMappings.load(Object) for CONTEXTS
see parse(DocumentParserContext) for acceptable inputs for indexing

This field type constructs completion queries that are run against the weighted FST index by the CompletionSuggester. This field can also be extended to add search criteria to suggestions for query-time filtering and boosting (see ContextMappings