public class FieldType extends Object implements IndexableFieldType
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldType.NumericType
Data type of the numeric value
|
| Modifier and Type | Method and Description |
|---|---|
DocValues.Type |
docValueType()
DocValues type; if non-null then the field's value
will be indexed into docValues
|
void |
freeze()
Prevents future changes.
|
boolean |
indexed()
True if this field should be indexed (inverted)
|
FieldInfo.IndexOptions |
indexOptions()
FieldInfo.IndexOptions, describing what should be
recorded into the inverted index |
int |
numericPrecisionStep()
Precision step for numeric field.
|
FieldType.NumericType |
numericType()
NumericDataType; if
non-null then the field's value will be indexed
numerically so that
NumericRangeQuery can be
used at search time. |
boolean |
omitNorms()
True if norms should not be indexed
|
void |
setDocValueType(DocValues.Type type) |
void |
setIndexed(boolean value) |
void |
setIndexOptions(FieldInfo.IndexOptions value) |
void |
setNumericPrecisionStep(int precisionStep) |
void |
setNumericType(FieldType.NumericType type) |
void |
setOmitNorms(boolean value) |
void |
setStored(boolean value) |
void |
setStoreTermVectorOffsets(boolean value) |
void |
setStoreTermVectorPositions(boolean value) |
void |
setStoreTermVectors(boolean value) |
void |
setTokenized(boolean value) |
boolean |
stored()
True if the field's value should be stored
|
boolean |
storeTermVectorOffsets()
True if term vector offsets should be indexed
|
boolean |
storeTermVectorPositions()
True if term vector positions should be indexed
|
boolean |
storeTermVectors()
True if term vectors should be indexed
|
boolean |
tokenized()
True if this field's value should be analyzed
|
String |
toString()
Prints a Field for human consumption.
|
public FieldType(FieldType ref)
public FieldType()
public void freeze()
public boolean indexed()
IndexableFieldTypeindexed in interface IndexableFieldTypepublic void setIndexed(boolean value)
public boolean stored()
IndexableFieldTypestored in interface IndexableFieldTypepublic void setStored(boolean value)
public boolean tokenized()
IndexableFieldTypetokenized in interface IndexableFieldTypepublic void setTokenized(boolean value)
public boolean storeTermVectors()
IndexableFieldTypestoreTermVectors in interface IndexableFieldTypepublic void setStoreTermVectors(boolean value)
public boolean storeTermVectorOffsets()
IndexableFieldTypestoreTermVectorOffsets in interface IndexableFieldTypepublic void setStoreTermVectorOffsets(boolean value)
public boolean storeTermVectorPositions()
IndexableFieldTypestoreTermVectorPositions in interface IndexableFieldTypepublic void setStoreTermVectorPositions(boolean value)
public boolean omitNorms()
IndexableFieldTypeomitNorms in interface IndexableFieldTypepublic void setOmitNorms(boolean value)
public FieldInfo.IndexOptions indexOptions()
IndexableFieldTypeFieldInfo.IndexOptions, describing what should be
recorded into the inverted indexindexOptions in interface IndexableFieldTypepublic void setIndexOptions(FieldInfo.IndexOptions value)
public void setDocValueType(DocValues.Type type)
public DocValues.Type docValueType()
IndexableFieldTypedocValueType in interface IndexableFieldTypepublic void setNumericType(FieldType.NumericType type)
public FieldType.NumericType numericType()
NumericRangeQuery can be
used at search time.public void setNumericPrecisionStep(int precisionStep)
public int numericPrecisionStep()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.