Class TypeTokenFilter

    • Constructor Detail

      • TypeTokenFilter

        @Deprecated
        public TypeTokenFilter​(Version version,
                               boolean enablePositionIncrements,
                               TokenStream input,
                               Set<String> stopTypes,
                               boolean useWhiteList)
        Deprecated.
        enablePositionIncrements=false is not supported anymore as of Lucene 4.4.
      • TypeTokenFilter

        @Deprecated
        public TypeTokenFilter​(Version version,
                               boolean enablePositionIncrements,
                               TokenStream input,
                               Set<String> stopTypes)
        Deprecated.
        enablePositionIncrements=false is not supported anymore as of Lucene 4.4.
      • TypeTokenFilter

        public TypeTokenFilter​(Version version,
                               TokenStream input,
                               Set<String> stopTypes,
                               boolean useWhiteList)
        Create a new TypeTokenFilter.
        Parameters:
        version - the Lucene match version
        input - the TokenStream to consume
        stopTypes - the types to filter
        useWhiteList - if true, then tokens whose type is in stopTypes will be kept, otherwise they will be filtered out