public interface SharedEntityIndexer
SharedEntity
.Modifier and Type | Method and Description |
---|---|
String |
clear(SharedEntity.TypeDescriptor<?> type)
Clear a particular type's index.
|
Index.Result |
deIndex(Set<SharedEntity> sharedEntities,
boolean updateReplicatedIndex)
Delete multiple documents in the index
|
Index.Result |
deIndex(SharedEntity entity)
Delete a document from the index.
|
Collection<String> |
getAllIndexPaths() |
<S extends SharedEntity> |
getSearcher(SharedEntity.TypeDescriptor<S> type)
Get a SharedEntitySearcher for the specified
SharedEntity.TypeDescriptor |
Index.Result |
index(Set<SharedEntity> sharedEntities,
boolean updateReplicatedIndex)
Add or update multiple documents in the index
|
Index.Result |
index(SharedEntity entity)
Add or update a document in the index.
|
Index.Result |
index(SharedEntity entity,
boolean updateReplicatedIndex)
Add or update a document in the index.
|
long |
optimize(SharedEntity.TypeDescriptor<?> type)
Optimize a particular type's index.
|
void |
recreate(SharedEntity.TypeDescriptor<?> type)
Recreate the index.
|
void |
shutdown(SharedEntity.TypeDescriptor<?> type)
Shutdown a particular type's index.
|
Index.Result index(SharedEntity entity)
entity
- the entity to add to the indexIndex.Result deIndex(SharedEntity entity)
entity
- the entity to remove from the indexIndex.Result index(SharedEntity entity, boolean updateReplicatedIndex)
entity
- the entity to add to the indexupdateReplicatedIndex
- whether to update the replicated index or notIndex.Result index(Set<SharedEntity> sharedEntities, boolean updateReplicatedIndex)
sharedEntities
- a Set of entities to add to the indexupdateReplicatedIndex
- whether to update the replicated index or notIndex.Result deIndex(Set<SharedEntity> sharedEntities, boolean updateReplicatedIndex)
sharedEntities
- a Set of entities to remove from the indexupdateReplicatedIndex
- whether to update the replicated index or not<S extends SharedEntity> SharedEntitySearcher<S> getSearcher(SharedEntity.TypeDescriptor<S> type)
SharedEntity.TypeDescriptor
type
- the index to use when searchinglong optimize(SharedEntity.TypeDescriptor<?> type)
type
- describes the particular indexvoid shutdown(SharedEntity.TypeDescriptor<?> type)
type
- describes the particular indexString clear(SharedEntity.TypeDescriptor<?> type)
type
- describes the particular indexCollection<String> getAllIndexPaths()
void recreate(SharedEntity.TypeDescriptor<?> type)
Copyright © 2002-2015 Atlassian. All Rights Reserved.