Class Fields
Flex API for access to fields and terms
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public abstract class Fields : IEnumerable<string>
Constructors
| Improve this Doc View SourceFields()
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Declaration
protected Fields()
Fields
| Improve this Doc View SourceEMPTY_ARRAY
Zero-length Fields array.
Declaration
public static readonly Fields[] EMPTY_ARRAY
Field Value
Type | Description |
---|---|
Fields[] |
Properties
| Improve this Doc View SourceCount
Gets the number of fields or -1 if the number of
distinct field names is unknown. If >= 0,
Get
NOTE: This was size() in Lucene.
Declaration
public abstract int Count { get; }
Property Value
Type | Description |
---|---|
System. |
UniqueTermCount
Returns the number of terms for all fields, or -1 if this measure isn't stored by the codec. Note that, just like other term measures, this measure does not take deleted documents into account.
Declaration
public virtual long UniqueTermCount { get; }
Property Value
Type | Description |
---|---|
System. |
See Also
Methods
| Improve this Doc View SourceGetEnumerator()
Returns an enumerator that will step through all field
names. This will not return null
.
Declaration
public abstract IEnumerator<string> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<System. |
GetTerms(String)
Get the Terms for this field. This will return
null
if the field does not exist.
Declaration
public abstract Terms GetTerms(string field)
Parameters
Type | Name | Description |
---|---|---|
System. |
field |
Returns
Type | Description |
---|---|
Terms |