Class FieldInfos
Collection of FieldInfos (accessible by number or by name).
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class FieldInfos : IEnumerable<FieldInfo>, IEnumerable
Constructors
| Improve this Doc View SourceFieldInfos(FieldInfo[])
Constructs a new FieldInfos from an array of FieldInfo objects
Declaration
public FieldInfos(FieldInfo[] infos)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo[] | infos |
Properties
| Improve this Doc View SourceCount
Returns the number of fields.
NOTE: This was size() in Lucene.
Declaration
public virtual int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
HasDocValues
Returns true
if any fields have DocValues
Declaration
public virtual bool HasDocValues { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasFreq
Returns true
if any fields have freqs
Declaration
public virtual bool HasFreq { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasNorms
Returns true
if any fields have norms
Declaration
public virtual bool HasNorms { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasOffsets
Returns true
if any fields have offsets
Declaration
public virtual bool HasOffsets { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasPayloads
Returns true
if any fields have payloads
Declaration
public virtual bool HasPayloads { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasProx
Returns true
if any fields have positions
Declaration
public virtual bool HasProx { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasVectors
Returns true
if any fields have vectors
Declaration
public virtual bool HasVectors { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceFieldInfo(Int32)
Return the FieldInfo object referenced by the fieldNumber
.
Declaration
public virtual FieldInfo FieldInfo(int fieldNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | fieldNumber | field's number. |
Returns
Type | Description |
---|---|
FieldInfo | the FieldInfo object or null when the given |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | if |
FieldInfo(String)
Return the FieldInfo object referenced by the fieldName
Declaration
public virtual FieldInfo FieldInfo(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName |
Returns
Type | Description |
---|---|
FieldInfo | the FieldInfo object or |
GetEnumerator()
Returns an iterator over all the fieldinfo objects present, ordered by ascending field number
Declaration
public virtual IEnumerator<FieldInfo> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<FieldInfo> |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |