public interface ElasticSearchAdmin
Modifier and Type | Method and Description |
---|---|
void |
flush()
Elasticsearch flush on all document indexes, triggers a lucene commit,
empties the transaction log.
|
void |
flushRepositoryIndex(String repositoryName)
Elasticsearch flush on document index for a specific repository,
triggers a lucene commit, empties the transaction log.
|
org.elasticsearch.client.Client |
getClient()
Retrieves the
Client that can be used to access Elasticsearch API |
int |
getPendingCommands()
Returns the number of indexing command that are waiting to be processed.
|
int |
getPendingDocs()
Returns the number of documents that are waiting for being indexed.
|
int |
getRunningCommands()
Returns the number of indexing command that are currently running
|
int |
getTotalCommandProcessed()
Returns the total number of command processed by Elasticsearch.
|
void |
initIndexes(boolean dropIfExists)
Initialize Elasticsearch indexes.
|
boolean |
isIndexingInProgress()
Returns true if there are indexing activities.
|
void |
refresh()
Refresh all document indexes, immediately after the operation occurs,
so that the updated document appears in search results immediately.
|
void |
refreshRepositoryIndex(String repositoryName)
Refresh document index for the specific repository, immediately after
the operation occurs, so that the updated document appears in search
results immediately.
|
org.elasticsearch.client.Client getClient()
Client
that can be used to access Elasticsearch APIvoid initIndexes(boolean dropIfExists)
dropIfExists
- if {true} remove an existing indexint getPendingDocs()
int getPendingCommands()
int getRunningCommands()
int getTotalCommandProcessed()
boolean isIndexingInProgress()
void refresh()
void refreshRepositoryIndex(String repositoryName)
void flush()
void flushRepositoryIndex(String repositoryName)
Copyright © 2014 Nuxeo SA. All rights reserved.