Class FieldType
Describes the properties of a field.
Inheritance
Implements
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public class FieldType : object, IIndexableFieldType
Constructors
| Improve this Doc View SourceFieldType()
Create a new Field
Declaration
public FieldType()
FieldType(FieldType)
Create a new mutable Fieldref
Declaration
public FieldType(FieldType ref)
Parameters
Type | Name | Description |
---|---|---|
Field |
ref |
Properties
| Improve this Doc View SourceDocValueType
Sets the field's Doc
Declaration
public virtual DocValuesType DocValueType { get; set; }
Property Value
Type | Description |
---|---|
Doc |
IndexOptions
Sets the indexing options for the field.
The default is DOCS_AND_FREQS_AND_POSITIONS.
Declaration
public virtual IndexOptions IndexOptions { get; set; }
Property Value
Type | Description |
---|---|
Index |
IsIndexed
Set to true
to index (invert) this field. The default is false
.
Declaration
public virtual bool IsIndexed { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsStored
Set to true
to store this field. The default is false
.
Declaration
public virtual bool IsStored { get; set; }
Property Value
Type | Description |
---|---|
System. |
IsTokenized
Set to true
to tokenize this field's contents via the
configured Analyzer. The default is false
.
Declaration
public virtual bool IsTokenized { get; set; }
Property Value
Type | Description |
---|---|
System. |
NumericPrecisionStep
Sets the numeric precision step for the field.
This has no effect if Numeric
The default is PRECISION_STEP_DEFAULT.
Declaration
public virtual int NumericPrecisionStep { get; set; }
Property Value
Type | Description |
---|---|
System. |
NumericType
Specifies the field's numeric type, or set to null
if the field has no numeric type.
If non-null then the field's value will be indexed numerically so that
Numeric
Declaration
public virtual NumericType NumericType { get; set; }
Property Value
Type | Description |
---|---|
Numeric |
OmitNorms
Set to true
to omit normalization values for the field. The default is false
.
Declaration
public virtual bool OmitNorms { get; set; }
Property Value
Type | Description |
---|---|
System. |
StoreTermVectorOffsets
Set to true
to also store token character offsets into the term
vector for this field. The default is false
.
Declaration
public virtual bool StoreTermVectorOffsets { get; set; }
Property Value
Type | Description |
---|---|
System. |
StoreTermVectorPayloads
Set to true
to also store token payloads into the term
vector for this field. The default is false
.
Declaration
public virtual bool StoreTermVectorPayloads { get; set; }
Property Value
Type | Description |
---|---|
System. |
StoreTermVectorPositions
Set to true
to also store token positions into the term
vector for this field. The default is false
.
Declaration
public virtual bool StoreTermVectorPositions { get; set; }
Property Value
Type | Description |
---|---|
System. |
StoreTermVectors
Set to true
if this field's indexed form should be also stored
into term vectors. The default is false
.
Declaration
public virtual bool StoreTermVectors { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceFreeze()
Prevents future changes. Note, it is recommended that this is called once
the Field
Declaration
public virtual void Freeze()
ToString()
Prints a Field
Declaration
public override sealed string ToString()
Returns
Type | Description |
---|---|
System. |