Uses of Class
org.apache.lucene.analysis.TokenStream
-
-
Uses of TokenStream in org.apache.lucene.analysis
Subclasses of TokenStream in org.apache.lucene.analysis Modifier and Type Class Description classCachingTokenFilterThis class can be used if the token attributes of a TokenStream are intended to be consumed more than once.classFilteringTokenFilterAbstract base class for TokenFilters that may remove tokens.classGraphTokenFilterAn abstract TokenFilter that exposes its input stream as a graph CallGraphTokenFilter.incrementBaseToken()to move the root of the graph to the next position in the TokenStream,GraphTokenFilter.incrementGraphToken()to move along the current graph, andGraphTokenFilter.incrementGraph()to reset to the next graph based at the current root.classLowerCaseFilterNormalizes token text to lower case.classStopFilterRemoves stop words from a token stream.classTokenFilterA TokenFilter is a TokenStream whose input is another TokenStream.classTokenizerA Tokenizer is a TokenStream whose input is a Reader.Fields in org.apache.lucene.analysis declared as TokenStream Modifier and Type Field Description protected TokenStreamTokenFilter. inputThe source of tokens for this filter.protected TokenStreamAnalyzer.TokenStreamComponents. sinkSink tokenstream, such as the outer tokenfilter decorating the chain.Methods in org.apache.lucene.analysis that return TokenStream Modifier and Type Method Description TokenStreamAnalyzer.TokenStreamComponents. getTokenStream()Returns the sinkTokenStreamprotected TokenStreamAnalyzer. normalize(String fieldName, TokenStream in)Wrap the givenTokenStreamin order to apply normalization filters.protected TokenStreamAnalyzerWrapper. normalize(String fieldName, TokenStream in)TokenStreamAnalyzer. tokenStream(String fieldName, Reader reader)Returns a TokenStream suitable forfieldName, tokenizing the contents ofreader.TokenStreamAnalyzer. tokenStream(String fieldName, String text)Returns a TokenStream suitable forfieldName, tokenizing the contents oftext.protected TokenStreamAnalyzerWrapper. wrapTokenStreamForNormalization(String fieldName, TokenStream in)Wraps / alters the given TokenStream for normalization purposes, taken from the wrapped Analyzer, to form new components.protected TokenStreamDelegatingAnalyzerWrapper. wrapTokenStreamForNormalization(String fieldName, TokenStream in)Methods in org.apache.lucene.analysis with parameters of type TokenStream Modifier and Type Method Description protected TokenStreamAnalyzer. normalize(String fieldName, TokenStream in)Wrap the givenTokenStreamin order to apply normalization filters.protected TokenStreamAnalyzerWrapper. normalize(String fieldName, TokenStream in)AutomatonTokenStreamToAutomaton. toAutomaton(TokenStream in)Pulls the graph (includingPositionLengthAttribute) from the providedTokenStream, and creates the corresponding automaton where arcs are bytes (or Unicode code points if unicodeArcs = true) from each term.protected TokenStreamAnalyzerWrapper. wrapTokenStreamForNormalization(String fieldName, TokenStream in)Wraps / alters the given TokenStream for normalization purposes, taken from the wrapped Analyzer, to form new components.protected TokenStreamDelegatingAnalyzerWrapper. wrapTokenStreamForNormalization(String fieldName, TokenStream in)Constructors in org.apache.lucene.analysis with parameters of type TokenStream Constructor Description CachingTokenFilter(TokenStream input)Create a new CachingTokenFilter aroundinput.FilteringTokenFilter(TokenStream in)Create a newFilteringTokenFilter.GraphTokenFilter(TokenStream input)Create a new GraphTokenFilterLowerCaseFilter(TokenStream in)Create a new LowerCaseFilter, that normalizes token text to lower case.StopFilter(TokenStream in, CharArraySet stopWords)Constructs a filter which removes words from the input TokenStream that are named in the Set.TokenFilter(TokenStream input)Construct a token stream filtering the given input.TokenStreamComponents(Consumer<Reader> source, TokenStream result)Creates a newAnalyzer.TokenStreamComponentsinstance.TokenStreamComponents(Tokenizer tokenizer, TokenStream result)Creates a newAnalyzer.TokenStreamComponentsinstance -
Uses of TokenStream in org.apache.lucene.analysis.core
Subclasses of TokenStream in org.apache.lucene.analysis.core Modifier and Type Class Description classFlattenGraphFilterConverts an incoming graph token stream, such as one fromSynonymGraphFilter, into a flat form so that all nodes form a single linear chain with no side paths.classKeywordTokenizerEmits the entire input as a single token.classLetterTokenizerA LetterTokenizer is a tokenizer that divides text at non-letters.classWhitespaceTokenizerA tokenizer that divides text at whitespace characters as defined byCharacter.isWhitespace(int).Methods in org.apache.lucene.analysis.core that return TokenStream Modifier and Type Method Description protected TokenStreamSimpleAnalyzer. normalize(String fieldName, TokenStream in)protected TokenStreamStopAnalyzer. normalize(String fieldName, TokenStream in)Methods in org.apache.lucene.analysis.core with parameters of type TokenStream Modifier and Type Method Description protected TokenStreamSimpleAnalyzer. normalize(String fieldName, TokenStream in)protected TokenStreamStopAnalyzer. normalize(String fieldName, TokenStream in)Constructors in org.apache.lucene.analysis.core with parameters of type TokenStream Constructor Description FlattenGraphFilter(TokenStream in) -
Uses of TokenStream in org.apache.lucene.analysis.en
Subclasses of TokenStream in org.apache.lucene.analysis.en Modifier and Type Class Description classEnglishPossessiveFilterTokenFilter that removes possessives (trailing 's) from words.classPorterStemFilterTransforms the token stream as per the Porter stemming algorithm.Methods in org.apache.lucene.analysis.en that return TokenStream Modifier and Type Method Description protected TokenStreamEnglishAnalyzer. normalize(String fieldName, TokenStream in)Methods in org.apache.lucene.analysis.en with parameters of type TokenStream Modifier and Type Method Description protected TokenStreamEnglishAnalyzer. normalize(String fieldName, TokenStream in)Constructors in org.apache.lucene.analysis.en with parameters of type TokenStream Constructor Description EnglishPossessiveFilter(TokenStream input)PorterStemFilter(TokenStream in) -
Uses of TokenStream in org.apache.lucene.analysis.hunspell
Subclasses of TokenStream in org.apache.lucene.analysis.hunspell Modifier and Type Class Description classHunspellStemFilterTokenFilter that uses hunspell affix rules and words to stem tokens.Constructors in org.apache.lucene.analysis.hunspell with parameters of type TokenStream Constructor Description HunspellStemFilter(TokenStream input, Dictionary dictionary)Create aHunspellStemFilteroutputting all possible stems.HunspellStemFilter(TokenStream input, Dictionary dictionary, boolean dedup)Create aHunspellStemFilteroutputting all possible stems.HunspellStemFilter(TokenStream input, Dictionary dictionary, boolean dedup, boolean longestOnly)Creates a new HunspellStemFilter that will stem tokens from the given TokenStream using affix rules in the provided Dictionary -
Uses of TokenStream in org.apache.lucene.analysis.miscellaneous
Subclasses of TokenStream in org.apache.lucene.analysis.miscellaneous Modifier and Type Class Description classConcatenateGraphFilterConcatenates/Joins every incoming token with a separator into one output token for every path through the token stream (which is a graph).classDeDuplicatingTokenFilterInspects token streams for duplicate sequences of tokens.classKeywordMarkerFilterMarks terms as keywords via theKeywordAttribute.classSetKeywordMarkerFilterMarks terms as keywords via theKeywordAttribute.Constructors in org.apache.lucene.analysis.miscellaneous with parameters of type TokenStream Constructor Description ConcatenateGraphFilter(TokenStream inputTokenStream)Creates a token stream to convertinputto a token stream of accepted strings by its token stream graph.ConcatenateGraphFilter(TokenStream inputTokenStream, boolean preserveSep, boolean preservePositionIncrements, int maxGraphExpansions)ConcatenateGraphFilter(TokenStream inputTokenStream, Character tokenSeparator, boolean preservePositionIncrements, int maxGraphExpansions)Creates a token stream to convertinputto a token stream of accepted strings by its token stream graph.DeDuplicatingTokenFilter(TokenStream in, DuplicateByteSequenceSpotter byteStreamDuplicateSpotter)DeDuplicatingTokenFilter(TokenStream in, DuplicateByteSequenceSpotter byteStreamDuplicateSpotter, boolean emitDuplicates)KeywordMarkerFilter(TokenStream in)Creates a newKeywordMarkerFilterSetKeywordMarkerFilter(TokenStream in, CharArraySet keywordSet)Create a new KeywordSetMarkerFilter, that marks the current token as a keyword if the tokens term buffer is contained in the given set via theKeywordAttribute. -
Uses of TokenStream in org.apache.lucene.analysis.ngram
Subclasses of TokenStream in org.apache.lucene.analysis.ngram Modifier and Type Class Description classEdgeNGramTokenFilterTokenizes the given token into n-grams of given size(s).Constructors in org.apache.lucene.analysis.ngram with parameters of type TokenStream Constructor Description EdgeNGramTokenFilter(TokenStream input, int gramSize)Creates an EdgeNGramTokenFilter that produces edge n-grams of the given size.EdgeNGramTokenFilter(TokenStream input, int minGram, int maxGram, boolean preserveOriginal)Creates an EdgeNGramTokenFilter that, for a given input term, produces all edge n-grams with lengths >= minGram and <= maxGram. -
Uses of TokenStream in org.apache.lucene.analysis.shingle
Subclasses of TokenStream in org.apache.lucene.analysis.shingle Modifier and Type Class Description classFixedShingleFilterA FixedShingleFilter constructs shingles (token n-grams) from a token stream.classShingleFilterA ShingleFilter constructs shingles (token n-grams) from a token stream.Constructors in org.apache.lucene.analysis.shingle with parameters of type TokenStream Constructor Description FixedShingleFilter(TokenStream input, int shingleSize)Creates a FixedShingleFilter over an input token streamFixedShingleFilter(TokenStream input, int shingleSize, String tokenSeparator, String fillerToken)Creates a FixedShingleFilter over an input token streamShingleFilter(TokenStream input)Construct a ShingleFilter with default shingle size: 2.ShingleFilter(TokenStream input, int maxShingleSize)Constructs a ShingleFilter with the specified shingle size from theTokenStreaminputShingleFilter(TokenStream input, int minShingleSize, int maxShingleSize)Constructs a ShingleFilter with the specified shingle size from theTokenStreaminputShingleFilter(TokenStream input, String tokenType)Construct a ShingleFilter with the specified token type for shingle tokens and the default shingle size: 2 -
Uses of TokenStream in org.apache.lucene.analysis.standard
Subclasses of TokenStream in org.apache.lucene.analysis.standard Modifier and Type Class Description classClassicFilterNormalizes tokens extracted withClassicTokenizer.classClassicTokenizerA grammar-based tokenizer constructed with JFlexclassStandardTokenizerA grammar-based tokenizer constructed with JFlex.Methods in org.apache.lucene.analysis.standard that return TokenStream Modifier and Type Method Description protected TokenStreamClassicAnalyzer. normalize(String fieldName, TokenStream in)protected TokenStreamStandardAnalyzer. normalize(String fieldName, TokenStream in)Methods in org.apache.lucene.analysis.standard with parameters of type TokenStream Modifier and Type Method Description protected TokenStreamClassicAnalyzer. normalize(String fieldName, TokenStream in)protected TokenStreamStandardAnalyzer. normalize(String fieldName, TokenStream in)Constructors in org.apache.lucene.analysis.standard with parameters of type TokenStream Constructor Description ClassicFilter(TokenStream in)Construct filtering in. -
Uses of TokenStream in org.apache.lucene.analysis.synonym
Subclasses of TokenStream in org.apache.lucene.analysis.synonym Modifier and Type Class Description classSynonymFilterDeprecated.UseSynonymGraphFilterinstead, but be sure to also useFlattenGraphFilterat index time (not at search time) as well.classSynonymGraphFilterApplies single- or multi-token synonyms from aSynonymMapto an incomingTokenStream, producing a fully correct graph output.Constructors in org.apache.lucene.analysis.synonym with parameters of type TokenStream Constructor Description SynonymFilter(TokenStream input, SynonymMap synonyms, boolean ignoreCase)Deprecated.SynonymGraphFilter(TokenStream input, SynonymMap synonyms, boolean ignoreCase)Apply previously built synonyms to incoming tokens. -
Uses of TokenStream in org.apache.lucene.analysis.util
Subclasses of TokenStream in org.apache.lucene.analysis.util Modifier and Type Class Description classCharTokenizerAn abstract base class for simple, character-oriented tokenizers.Methods in org.apache.lucene.analysis.util that return TokenStream Modifier and Type Method Description abstract TokenStreamTokenFilterFactory. create(TokenStream input)Transform the specified input TokenStreamTokenStreamTokenFilterFactory. normalize(TokenStream input)Normalize the specified input TokenStream While the default implementation returns input unchanged, filters that should be applied at normalization time can delegate tocreatemethod.Methods in org.apache.lucene.analysis.util with parameters of type TokenStream Modifier and Type Method Description abstract TokenStreamTokenFilterFactory. create(TokenStream input)Transform the specified input TokenStreamTokenStreamTokenFilterFactory. normalize(TokenStream input)Normalize the specified input TokenStream While the default implementation returns input unchanged, filters that should be applied at normalization time can delegate tocreatemethod. -
Uses of TokenStream in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return TokenStream Modifier and Type Method Description TokenStreamStoredFieldsWriter.MergeVisitor. tokenStream(Analyzer analyzer, TokenStream reuse)Methods in org.apache.lucene.codecs with parameters of type TokenStream Modifier and Type Method Description TokenStreamStoredFieldsWriter.MergeVisitor. tokenStream(Analyzer analyzer, TokenStream reuse) -
Uses of TokenStream in org.apache.lucene.document
Fields in org.apache.lucene.document declared as TokenStream Modifier and Type Field Description protected TokenStreamField. tokenStreamPre-analyzed tokenStream for indexed fields; this is separate from fieldsData because you are allowed to have both; eg maybe field has a String value but you customize how it's tokenizedMethods in org.apache.lucene.document that return TokenStream Modifier and Type Method Description TokenStreamField. tokenStream(Analyzer analyzer, TokenStream reuse)TokenStreamField. tokenStreamValue()The TokenStream for this field to be used when indexing, or null.Methods in org.apache.lucene.document with parameters of type TokenStream Modifier and Type Method Description voidField. setTokenStream(TokenStream tokenStream)Expert: sets the token stream to be used for indexing and causes isIndexed() and isTokenized() to return true.TokenStreamField. tokenStream(Analyzer analyzer, TokenStream reuse)Constructors in org.apache.lucene.document with parameters of type TokenStream Constructor Description Field(String name, TokenStream tokenStream, IndexableFieldType type)Create field with TokenStream value.TextField(String name, TokenStream stream)Creates a new un-stored TextField with TokenStream value. -
Uses of TokenStream in org.apache.lucene.index
Methods in org.apache.lucene.index that return TokenStream Modifier and Type Method Description TokenStreamIndexableField. tokenStream(Analyzer analyzer, TokenStream reuse)Creates the TokenStream used for indexing this field.Methods in org.apache.lucene.index with parameters of type TokenStream Modifier and Type Method Description TokenStreamIndexableField. tokenStream(Analyzer analyzer, TokenStream reuse)Creates the TokenStream used for indexing this field. -
Uses of TokenStream in org.apache.lucene.index.memory
Methods in org.apache.lucene.index.memory that return TokenStream Modifier and Type Method Description <T> TokenStreamMemoryIndex. keywordTokenStream(Collection<T> keywords)Convenience method; Creates and returns a token stream that generates a token for each keyword in the given collection, "as is", without any transforming text analysis.Methods in org.apache.lucene.index.memory with parameters of type TokenStream Modifier and Type Method Description voidMemoryIndex. addField(String fieldName, TokenStream stream)Iterates over the given token stream and adds the resulting terms to the index; Equivalent to adding a tokenized, indexed, termVectorStored, unstored, LuceneField.voidMemoryIndex. addField(String fieldName, TokenStream stream, int positionIncrementGap)Iterates over the given token stream and adds the resulting terms to the index; Equivalent to adding a tokenized, indexed, termVectorStored, unstored, LuceneField.voidMemoryIndex. addField(String fieldName, TokenStream tokenStream, int positionIncrementGap, int offsetGap)Iterates over the given token stream and adds the resulting terms to the index; Equivalent to adding a tokenized, indexed, termVectorStored, unstored, LuceneField. -
Uses of TokenStream in org.apache.lucene.search.highlight
Subclasses of TokenStream in org.apache.lucene.search.highlight Modifier and Type Class Description classOffsetLimitTokenFilterThis TokenFilter limits the number of tokens while indexing by adding up the current offset.classTokenStreamFromTermVectorTokenStream created from a term vector field.Methods in org.apache.lucene.search.highlight that return TokenStream Modifier and Type Method Description TokenStreamWeightedSpanTermExtractor. getTokenStream()Returns the tokenStream which may have been wrapped in a CachingTokenFilter.TokenStreamQueryScorer. init(TokenStream tokenStream)TokenStreamScorer. init(TokenStream tokenStream)Called to init the Scorer with aTokenStream.Methods in org.apache.lucene.search.highlight with parameters of type TokenStream Modifier and Type Method Description StringHighlighter. getBestFragment(TokenStream tokenStream, String text)Highlights chosen terms in a text, extracting the most relevant section.String[]Highlighter. getBestFragments(TokenStream tokenStream, String text, int maxNumFragments)Highlights chosen terms in a text, extracting the most relevant sections.StringHighlighter. getBestFragments(TokenStream tokenStream, String text, int maxNumFragments, String separator)Highlights terms in the text , extracting the most relevant sections and concatenating the chosen fragments with a separator (typically "...").TextFragment[]Highlighter. getBestTextFragments(TokenStream tokenStream, String text, boolean mergeContiguousFragments, int maxNumFragments)Low level api to get the most relevant (formatted) sections of the document.Map<String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTerms(Query query, float boost, TokenStream tokenStream)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.Map<String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTerms(Query query, float boost, TokenStream tokenStream, String fieldName)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.Map<String,WeightedSpanTerm>WeightedSpanTermExtractor. getWeightedSpanTermsWithScores(Query query, float boost, TokenStream tokenStream, String fieldName, IndexReader reader)Creates a Map ofWeightedSpanTermsfrom the givenQueryandTokenStream.TokenStreamQueryScorer. init(TokenStream tokenStream)TokenStreamScorer. init(TokenStream tokenStream)Called to init the Scorer with aTokenStream.voidFragmenter. start(String originalText, TokenStream tokenStream)Initializes the Fragmenter.voidNullFragmenter. start(String s, TokenStream tokenStream)voidSimpleFragmenter. start(String originalText, TokenStream stream)voidSimpleSpanFragmenter. start(String originalText, TokenStream tokenStream)Constructors in org.apache.lucene.search.highlight with parameters of type TokenStream Constructor Description OffsetLimitTokenFilter(TokenStream input, int offsetLimit)TokenGroup(TokenStream tokenStream) -
Uses of TokenStream in org.apache.lucene.search.suggest.analyzing
Subclasses of TokenStream in org.apache.lucene.search.suggest.analyzing Modifier and Type Class Description classSuggestStopFilterLikeStopFilterexcept it will not remove the last token if that token was not followed by some token separator.Constructors in org.apache.lucene.search.suggest.analyzing with parameters of type TokenStream Constructor Description SuggestStopFilter(TokenStream input, CharArraySet stopWords)Sole constructor. -
Uses of TokenStream in org.apache.lucene.search.suggest.document
Subclasses of TokenStream in org.apache.lucene.search.suggest.document Modifier and Type Class Description classCompletionTokenStreamAConcatenateGraphFilterbut we can set the payload and provide access to config options.Methods in org.apache.lucene.search.suggest.document that return TokenStream Modifier and Type Method Description TokenStreamSuggestField. tokenStream(Analyzer analyzer, TokenStream reuse)Methods in org.apache.lucene.search.suggest.document with parameters of type TokenStream Modifier and Type Method Description TokenStreamSuggestField. tokenStream(Analyzer analyzer, TokenStream reuse)protected CompletionTokenStreamContextSuggestField. wrapTokenStream(TokenStream stream)protected CompletionTokenStreamSuggestField. wrapTokenStream(TokenStream stream)Wraps astreamwith a CompletionTokenStream. -
Uses of TokenStream in org.apache.lucene.search.uhighlight
Methods in org.apache.lucene.search.uhighlight that return TokenStream Modifier and Type Method Description protected TokenStreamAnalysisOffsetStrategy. tokenStream(String content) -
Uses of TokenStream in org.apache.lucene.spatial.prefix
Subclasses of TokenStream in org.apache.lucene.spatial.prefix Modifier and Type Class Description classBytesRefIteratorTokenStreamA TokenStream used internally byPrefixTreeStrategy.classPrefixTreeStrategy.ShapeTokenStream -
Uses of TokenStream in org.apache.lucene.util
Methods in org.apache.lucene.util with parameters of type TokenStream Modifier and Type Method Description protected QueryQueryBuilder. analyzeBoolean(String field, TokenStream stream)Creates simple boolean query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzeGraphBoolean(String field, TokenStream source, BooleanClause.Occur operator)Creates a boolean query from a graph token stream.protected QueryQueryBuilder. analyzeGraphPhrase(TokenStream source, String field, int phraseSlop)Creates graph phrase query from the tokenstream contentsprotected QueryQueryBuilder. analyzeMultiBoolean(String field, TokenStream stream, BooleanClause.Occur operator)Creates complex boolean query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzeMultiPhrase(String field, TokenStream stream, int slop)Creates complex phrase query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzePhrase(String field, TokenStream stream, int slop)Creates simple phrase query from the cached tokenstream contentsprotected QueryQueryBuilder. analyzeTerm(String field, TokenStream stream)Creates simple term query from the cached tokenstream contentsprotected QueryQueryBuilder. createFieldQuery(TokenStream source, BooleanClause.Occur operator, String field, boolean quoted, int phraseSlop)Creates a query from a token stream.protected SpanQueryQueryBuilder. createSpanQuery(TokenStream in, String field)Creates a span query from the tokenstream. -
Uses of TokenStream in org.apache.lucene.util.graph
Methods in org.apache.lucene.util.graph that return types with arguments of type TokenStream Modifier and Type Method Description Iterator<TokenStream>GraphTokenStreamFiniteStrings. getFiniteStrings()Get all finite strings from the automaton.Iterator<TokenStream>GraphTokenStreamFiniteStrings. getFiniteStrings(int startState, int endState)Get all finite strings that start atstartStateand end atendState.Constructors in org.apache.lucene.util.graph with parameters of type TokenStream Constructor Description GraphTokenStreamFiniteStrings(TokenStream in) -
Uses of TokenStream in org.elasticsearch.index.analysis
Methods in org.elasticsearch.index.analysis that return TokenStream Modifier and Type Method Description TokenStreamHunspellTokenFilterFactory. create(TokenStream tokenStream)TokenStreamShingleTokenFilterFactory. create(TokenStream tokenStream)TokenStreamShingleTokenFilterFactory.Factory. create(TokenStream tokenStream)TokenStreamStopTokenFilterFactory. create(TokenStream tokenStream)TokenStreamTokenFilterFactory. create(TokenStream tokenStream)protected TokenStreamCustomAnalyzer. normalize(String fieldName, TokenStream in)default TokenStreamNormalizingTokenFilterFactory. normalize(TokenStream tokenStream)protected TokenStreamReloadableCustomAnalyzer. normalize(String fieldName, TokenStream in)default TokenStreamTokenFilterFactory. normalize(TokenStream tokenStream)Normalize a tokenStream for use in multi-term queries The default implementation is a no-opMethods in org.elasticsearch.index.analysis with parameters of type TokenStream Modifier and Type Method Description TokenStreamHunspellTokenFilterFactory. create(TokenStream tokenStream)TokenStreamShingleTokenFilterFactory. create(TokenStream tokenStream)TokenStreamShingleTokenFilterFactory.Factory. create(TokenStream tokenStream)TokenStreamStopTokenFilterFactory. create(TokenStream tokenStream)TokenStreamTokenFilterFactory. create(TokenStream tokenStream)protected TokenStreamCustomAnalyzer. normalize(String fieldName, TokenStream in)default TokenStreamNormalizingTokenFilterFactory. normalize(TokenStream tokenStream)protected TokenStreamReloadableCustomAnalyzer. normalize(String fieldName, TokenStream in)default TokenStreamTokenFilterFactory. normalize(TokenStream tokenStream)Normalize a tokenStream for use in multi-term queries The default implementation is a no-opMethod parameters in org.elasticsearch.index.analysis with type arguments of type TokenStream Modifier and Type Method Description static PreConfiguredTokenFilterPreConfiguredTokenFilter. elasticsearchVersion(String name, boolean useFilterForMultitermQueries, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Elasticsearch version.static PreConfiguredTokenFilterPreConfiguredTokenFilter. elasticsearchVersion(String name, boolean useFilterForMultitermQueries, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Elasticsearch version.static PreConfiguredTokenFilterPreConfiguredTokenFilter. luceneVersion(String name, boolean useFilterForMultitermQueries, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Lucene version.static PreConfiguredTokenFilterPreConfiguredTokenFilter. luceneVersion(String name, boolean useFilterForMultitermQueries, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Lucene version.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singleton(String name, boolean useFilterForMultitermQueries, boolean allowForSynonymParsing, Function<TokenStream,TokenStream> create)Create a pre-configured token filter that may not vary at all.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singleton(String name, boolean useFilterForMultitermQueries, boolean allowForSynonymParsing, Function<TokenStream,TokenStream> create)Create a pre-configured token filter that may not vary at all.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singleton(String name, boolean useFilterForMultitermQueries, Function<TokenStream,TokenStream> create)Create a pre-configured token filter that may not vary at all.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singleton(String name, boolean useFilterForMultitermQueries, Function<TokenStream,TokenStream> create)Create a pre-configured token filter that may not vary at all.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singletonWithVersion(String name, boolean useFilterForMultitermQueries, boolean useFilterForParsingSynonyms, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Elasticsearch version.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singletonWithVersion(String name, boolean useFilterForMultitermQueries, boolean useFilterForParsingSynonyms, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Elasticsearch version.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singletonWithVersion(String name, boolean useFilterForMultitermQueries, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Elasticsearch version.static PreConfiguredTokenFilterPreConfiguredTokenFilter. singletonWithVersion(String name, boolean useFilterForMultitermQueries, BiFunction<TokenStream,Version,TokenStream> create)Create a pre-configured token filter that may vary based on the Elasticsearch version. -
Uses of TokenStream in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper that return TokenStream Modifier and Type Method Description TokenStreamCustomDocValuesField. tokenStream(Analyzer analyzer, TokenStream reuse)Methods in org.elasticsearch.index.mapper with parameters of type TokenStream Modifier and Type Method Description static QueryTextFieldMapper. createPhrasePrefixQuery(TokenStream stream, String field, int slop, int maxExpansions, String prefixField, IntPredicate usePrefixField)static QueryTextFieldMapper. createPhraseQuery(TokenStream stream, String field, int slop, boolean enablePositionIncrements)static booleanTextFieldMapper.TextFieldType. hasGaps(TokenStream stream)QueryMappedFieldType. multiPhraseQuery(TokenStream stream, int slop, boolean enablePositionIncrements)QueryTextFieldMapper.TextFieldType. multiPhraseQuery(TokenStream stream, int slop, boolean enablePositionIncrements)QueryMappedFieldType. phrasePrefixQuery(TokenStream stream, int slop, int maxExpansions)QueryTextFieldMapper.TextFieldType. phrasePrefixQuery(TokenStream stream, int slop, int maxExpansions)QueryMappedFieldType. phraseQuery(TokenStream stream, int slop, boolean enablePositionIncrements)QueryTextFieldMapper.TextFieldType. phraseQuery(TokenStream stream, int slop, boolean enablePosIncrements)TokenStreamCustomDocValuesField. tokenStream(Analyzer analyzer, TokenStream reuse) -
Uses of TokenStream in org.elasticsearch.index.query
Methods in org.elasticsearch.index.query with parameters of type TokenStream Modifier and Type Method Description protected List<IntervalsSource>IntervalBuilder. analyzeGraph(TokenStream source)protected IntervalsSourceIntervalBuilder. analyzeSynonyms(TokenStream ts, int maxGaps, boolean ordered)protected IntervalsSourceIntervalBuilder. analyzeTerm(TokenStream ts)protected List<IntervalsSource>IntervalBuilder. analyzeTerms(TokenStream ts) -
Uses of TokenStream in org.elasticsearch.search.suggest.phrase
Methods in org.elasticsearch.search.suggest.phrase with parameters of type TokenStream Modifier and Type Method Description static intDirectCandidateGenerator. analyze(TokenStream stream, DirectCandidateGenerator.TokenConsumer consumer)NOTE: this method closes the TokenStream, even on exception, which is awkward because really the caller who calledAnalyzer.tokenStream(java.lang.String, java.io.Reader)should close it, but when trying that there are recursion issues when we try to use the same TokenStream twice in the same recursion...voidDirectCandidateGenerator.TokenConsumer. reset(TokenStream stream)
-