|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.document.FieldType
public class FieldType
Describes the properties of a field.
Nested Class Summary | |
---|---|
static class |
FieldType.NumericType
Data type of the numeric value |
Constructor Summary | |
---|---|
FieldType()
|
|
FieldType(FieldType ref)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldType(FieldType ref)
public FieldType()
Method Detail |
---|
public void freeze()
public boolean indexed()
IndexableFieldType
indexed
in interface IndexableFieldType
public void setIndexed(boolean value)
public boolean stored()
IndexableFieldType
stored
in interface IndexableFieldType
public void setStored(boolean value)
public boolean tokenized()
IndexableFieldType
tokenized
in interface IndexableFieldType
public void setTokenized(boolean value)
public boolean storeTermVectors()
IndexableFieldType
storeTermVectors
in interface IndexableFieldType
public void setStoreTermVectors(boolean value)
public boolean storeTermVectorOffsets()
IndexableFieldType
storeTermVectorOffsets
in interface IndexableFieldType
public void setStoreTermVectorOffsets(boolean value)
public boolean storeTermVectorPositions()
IndexableFieldType
storeTermVectorPositions
in interface IndexableFieldType
public void setStoreTermVectorPositions(boolean value)
public boolean omitNorms()
IndexableFieldType
omitNorms
in interface IndexableFieldType
public void setOmitNorms(boolean value)
public FieldInfo.IndexOptions indexOptions()
IndexableFieldType
FieldInfo.IndexOptions
, describing what should be
recorded into the inverted index
indexOptions
in interface IndexableFieldType
public void setIndexOptions(FieldInfo.IndexOptions value)
public void setDocValueType(DocValues.Type type)
public DocValues.Type docValueType()
IndexableFieldType
docValueType
in interface IndexableFieldType
public void setNumericType(FieldType.NumericType type)
public FieldType.NumericType numericType()
NumericRangeQuery
can be
used at search time.
public void setNumericPrecisionStep(int precisionStep)
public int numericPrecisionStep()
public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |