Class DocumentDictionary.DocumentInputEnumerator
Implements IInputEnumerator from stored fields.
Inheritance
System.Object
DocumentDictionary.DocumentInputEnumerator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Suggest
Assembly: Lucene.Net.Suggest.dll
Syntax
protected class DocumentInputEnumerator : IInputEnumerator, IBytesRefEnumerator
Constructors
| Improve this Doc View SourceDocumentInputEnumerator(DocumentDictionary, Boolean, Boolean)
Creates an iterator over term, weight and payload fields from the lucene
index. Setting hasPayloads to false, implies an enumerator
over only term and weight.
Declaration
public DocumentInputEnumerator(DocumentDictionary documentDictionary, bool hasPayloads, bool hasContexts)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentDictionary | documentDictionary | |
| System.Boolean | hasPayloads | |
| System.Boolean | hasContexts |
Properties
| Improve this Doc View SourceComparer
Declaration
public virtual IComparer<BytesRef> Comparer { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IComparer<Lucene.Net.Util.BytesRef> |
Contexts
Declaration
public virtual ICollection<BytesRef> Contexts { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<Lucene.Net.Util.BytesRef> |
Current
Declaration
public BytesRef Current { get; }
Property Value
| Type | Description |
|---|---|
| Lucene.Net.Util.BytesRef |
HasContexts
Declaration
public virtual bool HasContexts { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
HasPayloads
Declaration
public virtual bool HasPayloads { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Payload
Declaration
public virtual BytesRef Payload { get; }
Property Value
| Type | Description |
|---|---|
| Lucene.Net.Util.BytesRef |
Weight
Declaration
public virtual long Weight { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Methods
| Improve this Doc View SourceGetWeight(Document, Int32)
Returns the value of the Weight property for the current document.
Retrieves the value for the Weight property if its stored (using doc)
or if its indexed as Lucene.Net.Index.NumericDocValues (using docId) for the document.
If no value is found, then the weight is 0.
Declaration
protected virtual long GetWeight(Document doc, int docId)
Parameters
| Type | Name | Description |
|---|---|---|
| Lucene.Net.Documents.Document | doc | |
| System.Int32 | docId |
Returns
| Type | Description |
|---|---|
| System.Int64 |
MoveNext()
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Implements
Lucene.Net.Util.IBytesRefEnumerator