|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Field.Index> org.apache.lucene.document.Field.Index
public static enum Field.Index
Specifies whether and how a field should be indexed.
Enum Constant Summary | |
---|---|
ANALYZED
Index the tokens produced by running the field's value through an Analyzer. |
|
ANALYZED_NO_NORMS
Expert: Index the tokens produced by running the field's value through an Analyzer, and also separately disable the storing of norms. |
|
NO
Do not index the field value. |
|
NOT_ANALYZED
Index the field's value without using an Analyzer, so it can be searched. |
|
NOT_ANALYZED_NO_NORMS
Expert: Index the field's value without an Analyzer, and also disable the indexing of norms. |
Method Summary | |
---|---|
abstract boolean |
isAnalyzed()
|
abstract boolean |
isIndexed()
|
abstract boolean |
omitNorms()
|
static Field.Index |
toIndex(boolean indexed,
boolean analyzed)
Get the best representation of the index given the flags. |
static Field.Index |
toIndex(boolean indexed,
boolean analyzed,
boolean omitNorms)
Expert: Get the best representation of the index given the flags. |
static Field.Index |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Field.Index[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Field.Index NO
stored
.
public static final Field.Index ANALYZED
public static final Field.Index NOT_ANALYZED
public static final Field.Index NOT_ANALYZED_NO_NORMS
AbstractField.setOmitNorms(boolean)
. No norms means that
index-time field and document boosting and field
length normalization are disabled. The benefit is
less memory usage as norms take up one byte of RAM
per indexed field for every document in the index,
during searching. Note that once you index a given
field with norms enabled, disabling norms will
have no effect. In other words, for this to have the
above described effect on a field, all instances of
that field must be indexed with NOT_ANALYZED_NO_NORMS
from the beginning.
public static final Field.Index ANALYZED_NO_NORMS
NOT_ANALYZED_NO_NORMS
for what norms are
and why you may want to disable them.
Method Detail |
---|
public static final Field.Index[] values()
for(Field.Index c : Field.Index.values()) System.out.println(c);
public static Field.Index valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static Field.Index toIndex(boolean indexed, boolean analyzed)
public static Field.Index toIndex(boolean indexed, boolean analyzed, boolean omitNorms)
public abstract boolean isIndexed()
public abstract boolean isAnalyzed()
public abstract boolean omitNorms()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |