Class TypeTokenFilter

    • Constructor Detail

      • TypeTokenFilter

        public TypeTokenFilter​(boolean enablePositionIncrements,
                               TokenStream input,
                               Set<String> stopTypes,
                               boolean useWhiteList)
      • TypeTokenFilter

        public TypeTokenFilter​(boolean enablePositionIncrements,
                               TokenStream input,
                               Set<String> stopTypes)
    • Method Detail

      • accept

        protected boolean accept()
                          throws IOException
        By default accept the token if its type is not a stop type. When the useWhiteList parameter is set to true then accept the token if its type is contained in the stopTypes
        Specified by:
        accept in class FilteringTokenFilter
        Throws:
        IOException