Class TextFieldMapper

    • Method Detail

      • getPositionIncrementGap

        public int getPositionIncrementGap()
      • parseCreateField

        protected void parseCreateField​(ParseContext context,
                                        java.util.List<org.apache.lucene.index.IndexableField> fields)
                                 throws java.io.IOException
        Description copied from class: FieldMapper
        Parse the field value and populate fields.
        Specified by:
        parseCreateField in class FieldMapper
        Throws:
        java.io.IOException
      • iterator

        public java.util.Iterator<Mapper> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Mapper>
        Overrides:
        iterator in class FieldMapper
      • updateFieldType

        public FieldMapper updateFieldType​(java.util.Map<java.lang.String,​MappedFieldType> fullNameToFieldType)
        Description copied from class: Mapper
        Update the field type of this mapper. This is necessary because some mapping updates can modify mappings across several types. This method must return a copy of the mapper so that the current mapper is not modified.
        Overrides:
        updateFieldType in class FieldMapper
      • doMerge

        protected void doMerge​(Mapper mergeWith)
        Description copied from class: FieldMapper
        Merge changes coming from mergeWith in place.
        Overrides:
        doMerge in class FieldMapper
      • createPhraseQuery

        public static org.apache.lucene.search.Query createPhraseQuery​(org.apache.lucene.analysis.TokenStream stream,
                                                                       java.lang.String field,
                                                                       int slop,
                                                                       boolean enablePositionIncrements)
                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • createPhrasePrefixQuery

        public static org.apache.lucene.search.Query createPhrasePrefixQuery​(org.apache.lucene.analysis.TokenStream stream,
                                                                             java.lang.String field,
                                                                             int slop,
                                                                             int maxExpansions,
                                                                             java.lang.String prefixField,
                                                                             java.util.function.IntPredicate usePrefixField)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException