Class SearchAsYouTypeFieldMapper

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Iterable<Mapper>, ToXContent, ToXContentFragment

    public class SearchAsYouTypeFieldMapper
    extends ParametrizedFieldMapper
    Mapper for a text field that optimizes itself for as-you-type completion by indexing its content into subfields. Each subfield modifies the analysis chain of the root field to index terms the user would create as they type out the value in the root field The structure of these fields is
         [ SearchAsYouTypeFieldMapper, SearchAsYouTypeFieldType, unmodified analysis ]
         ├── [ ShingleFieldMapper, ShingleFieldType, analysis wrapped with 2-shingles ]
         ├── ...
         ├── [ ShingleFieldMapper, ShingleFieldType, analysis wrapped with max_shingle_size-shingles ]
         └── [ PrefixFieldMapper, PrefixFieldType, analysis wrapped with max_shingle_size-shingles and edge-ngrams ]