Class BlendedInfixSuggester
Extension of the AnalyzingInfixSuggester which transforms the weight after search to take into account the position of the searched term into the indexed text. Please note that it increases the number of elements searched and applies the ponderation after. It might be costly for long suggestions.
@lucene.experimental
Inherited Members
Assembly: Lucene.Net.Suggest.dll
Syntax
public class BlendedInfixSuggester : AnalyzingInfixSuggester, IDisposable
Constructors
Name | Description |
---|---|
BlendedInfixSuggester(LuceneVersion, Store.Directory, Analyzer) | Create a new instance, loading from a previously built directory, if it exists. |
BlendedInfixSuggester(LuceneVersion, Store.Directory, Analyzer, Analyzer, Int32, BlendedInfixSuggester.BlenderType, Int32) | Create a new instance, loading from a previously built directory, if it exists. |
Fields
Name | Description |
---|---|
DEFAULT_NUM_FACTOR | Default factor |
LINEAR_COEF | Coefficient used for linear blending |
Methods
Name | Description |
---|---|
CalculateCoefficient(Int32) | Calculate the weight coefficient based on the position of the first matching word. Subclass should override it to adapt it to particular needs |
CreateResults(IndexSearcher, TopFieldDocs, Int32, String, Boolean, IEnumerable<String>, String) | |
DoLookup(String, IEnumerable<BytesRef>, Boolean, Int32) | |
DoLookup(String, IEnumerable<BytesRef>, Int32, Boolean, Boolean) | |
GetTextFieldType() |