Class FieldInvertState
This class tracks the number and position / offset parameters of terms being added to the index. The information collected in this class is also used to calculate the normalization factor for a field.
Inheritance
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public sealed class FieldInvertState
Constructors
| Improve this Doc View SourceFieldInvertState(String)
Creates FieldInvertState for the specified field name.
Declaration
public FieldInvertState(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
FieldInvertState(String, Int32, Int32, Int32, Int32, Single)
Creates FieldInvertState for the specified field name and values for all fields.
Declaration
public FieldInvertState(string name, int position, int length, int numOverlap, int offset, float boost)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Int32 | position | |
System.Int32 | length | |
System.Int32 | numOverlap | |
System.Int32 | offset | |
System.Single | boost |
Properties
| Improve this Doc View SourceAttributeSource
Gets the AttributeSource from the TokenStream that provided the indexed tokens for this field.
Declaration
public AttributeSource AttributeSource { get; }
Property Value
Type | Description |
---|---|
AttributeSource |
Boost
Gets or Sets boost value. This is the cumulative product of document boost and field boost for all field instances sharing the same field name.
Declaration
public float Boost { get; set; }
Property Value
Type | Description |
---|---|
System.Single | the boost |
Length
Gets or Sets total number of terms in this field.
Declaration
public int Length { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | the length |
MaxTermFrequency
Get the maximum term-frequency encountered for any term in the field. A field containing "the quick brown fox jumps over the lazy dog" would have a value of 2, because "the" appears twice.
Declaration
public int MaxTermFrequency { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
Gets the field's name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
NumOverlap
Gets or Sets the number of terms with positionIncrement == 0
.
Declaration
public int NumOverlap { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | the numOverlap |
Offset
Gets end offset of the last processed term.
Declaration
public int Offset { get; }
Property Value
Type | Description |
---|---|
System.Int32 | the offset |
Position
Gets the last processed term position.
Declaration
public int Position { get; }
Property Value
Type | Description |
---|---|
System.Int32 | the position |
UniqueTermCount
Gets the number of unique terms encountered in this field.
Declaration
public int UniqueTermCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |