Package org.apache.lucene.search.suggest.document
Support for document suggestion
-
Class Summary Class Description Completion50PostingsFormat CompletionPostingsFormatfororg.apache.lucene.backward_codecs.lucene50.Lucene50PostingsFormat.Completion84PostingsFormat CompletionPostingsFormatfororg.apache.lucene.backward_codecs.lucene84.Lucene84PostingsFormat.Completion90PostingsFormat CompletionPostingsFormatfororg.apache.lucene.backward_codecs.lucene90.Lucene90PostingsFormat.Completion912PostingsFormat Completion99PostingsFormat CompletionPostingsFormatfororg.apache.lucene.backward_codecs.lucene99.Lucene99PostingsFormat.CompletionAnalyzer Wraps anAnalyzerto provide additional completion-only tuning (e.g.CompletionPostingsFormat APostingsFormatwhich supports document suggestion based on indexedSuggestFields.CompletionQuery AbstractQuerythat match documents containing terms with a specified prefix filtered byBitsProducer.CompletionScorer Expert: Responsible for executing the query against an appropriate suggester and collecting the results via a collector.CompletionsTermsReader Holder for suggester and field-level info for a suggest fieldCompletionTerms WrappedTermsused bySuggestFieldandContextSuggestFieldto access corresponding suggester and their attributesCompletionTokenStream AConcatenateGraphFilterbut we can set the payload and provide access to config options.CompletionWeight Expert: the Weight for CompletionQuery, used to score and explain these queries.ContextQuery ACompletionQuerythat matches documents specified by a wrappedCompletionQuerysupporting boosting and/or filtering by specified contexts.ContextSuggestField SuggestFieldwhich additionally takes in a set of contexts.FuzzyCompletionQuery ACompletionQuerythat match documents containing terms within an edit distance of the specified prefix.NRTSuggester NRTSuggester executes Top N search on a weighted FST specified by aCompletionScorerPrefixCompletionQuery ACompletionQuerywhich takes anAnalyzerto analyze the prefix of the query term.RegexCompletionQuery ACompletionQuerywhich takes a regular expression as the prefix of the query term.SuggestField Field that indexes a string value and a weight as a weighted completion against a named suggester.SuggestIndexSearcher Adds document suggest capabilities to IndexSearcher.TopSuggestDocs TopSuggestDocs.SuggestScoreDoc ScoreDocwith an additional CharSequence keyTopSuggestDocsCollector Collectorthat collects completion and score, along with document id -
Enum Summary Enum Description CompletionPostingsFormat.FSTLoadMode An enum that allows to control if suggester FSTs are loaded into memory or read off-heap