public interface ElasticSearchAdmin
Modifier and Type | Method and Description |
---|---|
void |
dropAndInitRepositoryIndex(String repositoryName)
Reinitialize the index of a repository.
|
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.
|
List<String> |
getRepositoryNames()
List repository names that has Elasticsearch support.
|
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 indexvoid dropAndInitRepositoryIndex(String repositoryName)
List<String> getRepositoryNames()
boolean isIndexingInProgress()
void refresh()
void refreshRepositoryIndex(String repositoryName)
void flush()
void flushRepositoryIndex(String repositoryName)
int getPendingDocs()
int getPendingCommands()
int getRunningCommands()
int getTotalCommandProcessed()
Copyright © 2015 Nuxeo SA. All rights reserved.