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.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public sealed class FieldInvertState
Constructors
FieldInvertState(string)
Creates FieldInvertState for the specified field name.
Declaration
public FieldInvertState(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
FieldInvertState(string, int, int, int, int, float)
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 |
---|---|---|
string | name | |
int | position | |
int | length | |
int | numOverlap | |
int | offset | |
float | boost |
Properties
AttributeSource
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 |
---|---|
float | the boost |
Length
Gets or Sets total number of terms in this field.
Declaration
public int Length { get; set; }
Property Value
Type | Description |
---|---|
int | 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 |
---|---|
int |
Name
Gets the field's name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
NumOverlap
Gets or Sets the number of terms with positionIncrement == 0
.
Declaration
public int NumOverlap { get; set; }
Property Value
Type | Description |
---|---|
int | the numOverlap |
Offset
Gets end offset of the last processed term.
Declaration
public int Offset { get; }
Property Value
Type | Description |
---|---|
int | the offset |
Position
Gets the last processed term position.
Declaration
public int Position { get; }
Property Value
Type | Description |
---|---|
int | the position |
UniqueTermCount
Gets the number of unique terms encountered in this field.
Declaration
public int UniqueTermCount { get; }
Property Value
Type | Description |
---|---|
int |