C# (CSharp) Lucene.Net.Search.Suggest Namespace

Nested Namespaces

Lucene.Net.Search.Suggest.Analyzing
Lucene.Net.Search.Suggest.Fst
Lucene.Net.Search.Suggest.Tst

Classes

Name Description
BufferedInputIterator This wrapper buffers incoming elements. @lucene.experimental
BufferingTermFreqIteratorWrapper This wrapper buffers incoming elements. @lucene.experimental
DocumentValueSourceDictionary

Dictionary with terms and optionally payload information taken from stored fields in a Lucene index. Similar to DocumentDictionary, except it obtains the weight of the terms in a document based on a ValueSource.

NOTE:
  • The term and (optionally) payload fields have to be stored
  • if the term or (optionally) payload fields supplied do not have a value for a document, then the document is rejected by the dictionary

In practice the ValueSource will likely be obtained using the lucene expression module. The following example shows how to create a ValueSource from a simple addition of two fields: Expression expression = JavascriptCompiler.compile("f1 + f2"); SimpleBindings bindings = new SimpleBindings(); bindings.add(new SortField("f1", SortField.Type.LONG)); bindings.add(new SortField("f2", SortField.Type.LONG)); ValueSource valueSource = expression.getValueSource(bindings);

DocumentValueSourceDictionary.DocumentValueSourceInputIterator
DocumentValueSourceDictionaryTest
FileDictionary Dictionary represented by a text file.

Format allowed: 1 entry per line:

An entry can be:

suggestion suggestion fieldDelimiter weight suggestion fieldDelimiter weight fieldDelimiter payload where the default fieldDelimiter is DEFAULT_FIELD_DELIMITER (a tab)

NOTE: In order to have payload enabled, the first entry has to have a payload If the weight for an entry is not specified then a value of 1 is used A payload cannot be specified without having the weight specified for an entry If the payload for an entry is not specified (assuming payload is enabled) then an empty payload is returned An entry cannot have more than two fieldDelimiters

Example: word1 word2 TAB 100 TAB payload1 word3 TAB 101 word4 word3 TAB 102
FileDictionary.FileIterator
FileDictionaryTest
InputArrayIterator A InputIterator over a sequence of Inputs.
PersistenceTest
TestHighFrequencyDictionary
TestInputIterator
UnsortedInputIterator This wrapper buffers the incoming elements and makes sure they are in random order. @lucene.experimental