Class FieldInfos
Collection of Field
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
FieldInfos
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class FieldInfos : IEnumerable<FieldInfo>
Constructors
| Improve this Doc View SourceFieldInfos(FieldInfo[])
Constructs a new Field
Declaration
public FieldInfos(FieldInfo[] infos)
Parameters
Type | Name | Description |
---|---|---|
Field |
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. |
HasDocValues
Returns true
if any fields have Doc
Declaration
public virtual bool HasDocValues { get; }
Property Value
Type | Description |
---|---|
System. |
HasFreq
Returns true
if any fields have freqs
Declaration
public virtual bool HasFreq { get; }
Property Value
Type | Description |
---|---|
System. |
HasNorms
Returns true
if any fields have norms
Declaration
public virtual bool HasNorms { get; }
Property Value
Type | Description |
---|---|
System. |
HasOffsets
Returns true
if any fields have offsets
Declaration
public virtual bool HasOffsets { get; }
Property Value
Type | Description |
---|---|
System. |
HasPayloads
Returns true
if any fields have payloads
Declaration
public virtual bool HasPayloads { get; }
Property Value
Type | Description |
---|---|
System. |
HasProx
Returns true
if any fields have positions
Declaration
public virtual bool HasProx { get; }
Property Value
Type | Description |
---|---|
System. |
HasVectors
Returns true
if any fields have vectors
Declaration
public virtual bool HasVectors { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceFieldInfo(Int32)
Return the FieldfieldNumber
.
Declaration
public virtual FieldInfo FieldInfo(int fieldNumber)
Parameters
Type | Name | Description |
---|---|---|
System. |
fieldNumber | field's number. |
Returns
| Improve this Doc View SourceFieldInfo(String)
Return the FieldfieldName
Declaration
public virtual FieldInfo FieldInfo(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System. |
fieldName |
Returns
| Improve this Doc View SourceGetEnumerator()
Returns an iterator over all the fieldinfo objects present, ordered by ascending field number
Declaration
public virtual IEnumerator<FieldInfo> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Field |