public static enum BaseElasticSearchIndexBuilder.IndexAction extends Enum<BaseElasticSearchIndexBuilder.IndexAction>
| Enum Constant and Description |
|---|
ADD
Action ADD the record to the search engine, if the doc ID is set, then
remove first, if not set, check its not there.
|
DELETE
Action DELETE the record from the search engine, once complete delete the
record
|
REBUILD
The action REBUILD causes the indexer thread to rebuild the index from
scratch, re-fetching all entities This should only ever appear on the
master record
|
REFRESH
The action REFRESH causes the indexer thread to refresh the search index
from the current set of entities.
|
UNKNOWN
Action Unknown, usually because the record has just been created
|
| Modifier and Type | Method and Description |
|---|---|
static BaseElasticSearchIndexBuilder.IndexAction |
getAction(int itemActionId)
Generate an IndexAction based on an action ID provided by the Search API
|
int |
getItemAction() |
static BaseElasticSearchIndexBuilder.IndexAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseElasticSearchIndexBuilder.IndexAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseElasticSearchIndexBuilder.IndexAction UNKNOWN
public static final BaseElasticSearchIndexBuilder.IndexAction ADD
public static final BaseElasticSearchIndexBuilder.IndexAction DELETE
public static final BaseElasticSearchIndexBuilder.IndexAction REBUILD
public static final BaseElasticSearchIndexBuilder.IndexAction REFRESH
public static BaseElasticSearchIndexBuilder.IndexAction[] values()
for (BaseElasticSearchIndexBuilder.IndexAction c : BaseElasticSearchIndexBuilder.IndexAction.values()) System.out.println(c);
public static BaseElasticSearchIndexBuilder.IndexAction 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 BaseElasticSearchIndexBuilder.IndexAction getAction(int itemActionId)
itemActionId - action ID used by the Search APIpublic int getItemAction()
Copyright © 2003–2018 Sakai Project. All rights reserved.