@Deprecated public static enum Field.Index extends Enum<Field.Index>
Enum Constant and Description |
---|
ANALYZED
Deprecated.
Index the tokens produced by running the field's
value through an Analyzer.
|
ANALYZED_NO_NORMS
Deprecated.
Expert: Index the tokens produced by running the
field's value through an Analyzer, and also
separately disable the storing of norms.
|
NO
Deprecated.
Do not index the field value.
|
NOT_ANALYZED
Deprecated.
Index the field's value without using an Analyzer, so it can be searched.
|
NOT_ANALYZED_NO_NORMS
Deprecated.
Expert: Index the field's value without an Analyzer,
and also disable the indexing of norms.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isAnalyzed()
Deprecated.
|
abstract boolean |
isIndexed()
Deprecated.
|
abstract boolean |
omitNorms()
Deprecated.
|
static Field.Index |
toIndex(boolean indexed,
boolean analyzed)
Deprecated.
Get the best representation of the index given the flags.
|
static Field.Index |
toIndex(boolean indexed,
boolean analyzed,
boolean omitNorms)
Deprecated.
Expert: Get the best representation of the index given the flags.
|
static Field.Index |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Field.Index[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
FieldType.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.public static 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 nameNullPointerException
- if the argument is nullpublic 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()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.