Class DocumentDictionary
Dictionary with terms, weights, payload (optional) and contexts (optional) information taken from stored/indexed fields in a Lucene index.
NOTE:- The term and (optionally) payload fields have to be stored
-
The weight field can be stored or can be a
. If the weight field is not defined, the value of the weight is 0
- if any of the term or (optionally) payload fields supplied do not have a value for a document, then the document is skipped by the dictionary
Inheritance
Assembly: Lucene.Net.Suggest.dll
Syntax
public class DocumentDictionary : object, IDictionary
Constructors
Name | Description |
---|---|
DocumentDictionary(IndexReader, String, String) | Creates a new dictionary with the contents of the fields named |
DocumentDictionary(IndexReader, String, String, String) | Creates a new dictionary with the contents of the fields named |
DocumentDictionary(IndexReader, String, String, String, String) | Creates a new dictionary with the contents of the fields named |
Fields
Name | Description |
---|---|
m_contextsField | Field to read contexts from |
m_payloadField | Field to read payload from |
m_reader |
Methods
Name | Description |
---|---|
GetEntryIterator() |