Module org.elasticsearch.xcore
Class AnnotationIndex
java.lang.Object
org.elasticsearch.xpack.core.ml.annotations.AnnotationIndex
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic voidcreateAnnotationsIndexIfNecessary(Client client, ClusterState state, org.elasticsearch.core.TimeValue masterNodeTimeout, ActionListener<Boolean> finalListener) Create the .ml-annotations-6 index with correct mappings if it does not already exist.static voidcreateAnnotationsIndexIfNecessaryAndWaitForYellow(Client client, ClusterState state, org.elasticsearch.core.TimeValue masterNodeTimeout, ActionListener<Boolean> finalListener) Create the .ml-annotations-6 index with correct mappings if it does not already exist.
-
Field Details
-
READ_ALIAS_NAME
- See Also:
-
WRITE_ALIAS_NAME
- See Also:
-
LATEST_INDEX_NAME
- See Also:
-
INDEX_PATTERN
- See Also:
-
OLD_INDEX_NAMES
-
ANNOTATION_INDEX_MAPPINGS_VERSION
public static final int ANNOTATION_INDEX_MAPPINGS_VERSION- See Also:
-
-
Constructor Details
-
AnnotationIndex
public AnnotationIndex()
-
-
Method Details
-
createAnnotationsIndexIfNecessaryAndWaitForYellow
public static void createAnnotationsIndexIfNecessaryAndWaitForYellow(Client client, ClusterState state, org.elasticsearch.core.TimeValue masterNodeTimeout, ActionListener<Boolean> finalListener) Create the .ml-annotations-6 index with correct mappings if it does not already exist. This index is read and written by the UI results views, so needs to exist when there might be ML results to view. This method also waits for the index to be ready to search before it returns. -
createAnnotationsIndexIfNecessary
public static void createAnnotationsIndexIfNecessary(Client client, ClusterState state, org.elasticsearch.core.TimeValue masterNodeTimeout, ActionListener<Boolean> finalListener) Create the .ml-annotations-6 index with correct mappings if it does not already exist. This index is read and written by the UI results views, so needs to exist when there might be ML results to view. -
annotationsMapping
-