public enum DocumentRefreshStrategy extends Enum<DocumentRefreshStrategy>
| Enum Constant and Description |
|---|
FORCE
After a change to an indexed document,
force a refresh of the corresponding shard to make the updated document searchable immediately,
and wait for that refresh to finish.
|
NONE
After a change to an indexed document,
simply let the global index refresh policy follow its course,
without waiting for anything.
|
| Modifier and Type | Method and Description |
|---|---|
static DocumentRefreshStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentRefreshStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentRefreshStrategy NONE
The updated document may be searchable immediately after the document is updated, or after a short period of time, depending on the backend and index.
public static final DocumentRefreshStrategy FORCE
public static DocumentRefreshStrategy[] values()
for (DocumentRefreshStrategy c : DocumentRefreshStrategy.values()) System.out.println(c);
public static DocumentRefreshStrategy 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 nullCopyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.