public class ElasticIndexer extends AsynchIndexer<NamedFields,org.elasticsearch.action.ActionResponse>
Indexer for Elasticsearch.Indexer.IndexerType, Indexer.NoContent| Constructor and Description |
|---|
ElasticIndexer() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListeningExecutorService |
executorService() |
Indexer.IndexerType |
getIndexerType() |
String |
getIndexName() |
String |
getSearchIndexType() |
void |
initIndex()
Constructs an index with the name supplied.
|
Callable<org.elasticsearch.action.ActionResponse> |
removeSynch(String id) |
void |
setIndexName(String indexName) |
void |
setSearchIndexType(String searchIndexType) |
Callable<org.elasticsearch.action.ActionResponse> |
updateSynch(String id,
NamedFields content) |
remove, update@PostConstruct public void initIndex() throws InterruptedException
InterruptedExceptionpublic Callable<org.elasticsearch.action.ActionResponse> removeSynch(String id)
removeSynch in class AsynchIndexer<NamedFields,org.elasticsearch.action.ActionResponse>public Callable<org.elasticsearch.action.ActionResponse> updateSynch(String id, NamedFields content)
updateSynch in class AsynchIndexer<NamedFields,org.elasticsearch.action.ActionResponse>public Indexer.IndexerType getIndexerType()
public com.google.common.util.concurrent.ListeningExecutorService executorService()
executorService in class AsynchIndexer<NamedFields,org.elasticsearch.action.ActionResponse>public void setSearchIndexType(String searchIndexType)
searchIndexType - the searchIndexType to setpublic void setIndexName(String indexName)
indexName - the indexName to setpublic String getSearchIndexType()
public String getIndexName()
Copyright © 2013–2014 DuraSpace, Inc.. All rights reserved.