@Deprecated public enum Consistency extends java.lang.Enum<Consistency>
GLOBAL or PER_DOCUMENT
consistent using this enum. An index with GLOBAL consistency, when
searched, returns results with all changes prior to the search request,
committed. For PER_DOCUMENT consistent indexes, a search result may
contain some out of date documents. However, any two changes to any document
stored in such an index are applied in the correct order. The benefit of
PER_DOCUMENT consistent index is that it provides much higher index
document throughput than a globally consistent one.
Typically, you would use GLOBAL consistency if organizing
personal user information, to reflect all changes known to the user in
any search results. The PER_DOCUMENT consistency should be used
in indexes that amalgamate information from multiple sources, where no
single user is aware of all collected data.
| Enum Constant and Description |
|---|
GLOBAL
Deprecated.
As of 1.7.3. GLOBAL mode is no longer supported.
|
PER_DOCUMENT
Deprecated.
Document level consistent index, with search results that may not include
the latest changes to the index.
|
| Modifier and Type | Method and Description |
|---|---|
static Consistency |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Consistency[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final Consistency GLOBAL
public static final Consistency PER_DOCUMENT
public static Consistency[] values()
for (Consistency c : Consistency.values()) System.out.println(c);
public static Consistency valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null