public class AsyncIndex<T> extends Object implements AsyncIndexCRUD<T>, AsyncTasks<T>, AsyncObjects<T>, AsyncSettings<T>, AsyncKey<T>, AsyncSearchForFacet<T>, AsyncPartialUpdate<T>, AsyncSynonyms<T>, AsyncRules<T>, AsyncDeleteByQuery<T>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<AsyncTaskSingleIndex> |
batch(List<BatchOperation> operations)
Custom batch
|
CompletableFuture<AsyncTaskSingleIndex> |
batch(List<BatchOperation> operations,
RequestOptions requestOptions)
Custom batch
|
AsyncAPIClient |
getApiClient() |
Class<T> |
getKlass() |
String |
getName() |
CompletableFuture<SearchResult<T>> |
search(Query query)
Search in the index
|
CompletableFuture<SearchResult<T>> |
search(Query query,
RequestOptions requestOptions)
Search in the index
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, clear, copyTo, copyTo, copyTo, copyTo, delete, delete, moveTo, moveTowaitTask, waitTask, waitTask, waitTask, waitTaskaddObject, addObject, addObject, addObject, addObjects, addObjects, deleteObject, deleteObject, deleteObjects, deleteObjects, getObject, getObject, getObjects, getObjects, getObjects, getObjects, saveObject, saveObject, saveObjects, saveObjectsgetSettings, getSettings, setSettings, setSettings, setSettings, setSettingsaddApiKey, addApiKey, addKey, deleteApiKey, deleteApiKey, deleteKey, getApiKey, getApiKey, getKey, listApiKeys, listApiKeys, listKeys, updateApiKey, updateApiKey, updateKeysearchFacet, searchFacet, searchForFacetValues, searchForFacetValues, searchForFacetValues, searchForFacetValues, searchInFacetValues, searchInFacetValuespartialUpdateObject, partialUpdateObject, partialUpdateObject, partialUpdateObject, partialUpdateObject, partialUpdateObject, partialUpdateObjects, partialUpdateObjects, partialUpdateObjects, partialUpdateObjectsbatchSynonyms, batchSynonyms, batchSynonyms, batchSynonyms, batchSynonyms, batchSynonyms, clearSynonyms, clearSynonyms, clearSynonyms, clearSynonyms, deleteSynonym, deleteSynonym, deleteSynonym, deleteSynonym, getSynonym, getSynonym, saveSynonym, saveSynonym, saveSynonym, saveSynonym, searchSynonyms, searchSynonymsbatchRules, batchRules, batchRules, batchRules, batchRules, batchRules, clearRules, clearRules, clearRules, clearRules, deleteRule, deleteRule, deleteRule, deleteRule, getRule, getRule, saveRule, saveRule, saveRule, saveRule, searchRules, searchRulesdeleteBy, deleteBypublic String getName()
getName in interface AbstractIndex<T>public Class<T> getKlass()
getKlass in interface AbstractIndex<T>public AsyncAPIClient getApiClient()
getApiClient in interface AsyncBaseIndex<T>public CompletableFuture<SearchResult<T>> search(@Nonnull Query query)
query - the querypublic CompletableFuture<SearchResult<T>> search(@Nonnull Query query, @Nonnull RequestOptions requestOptions)
query - the queryrequestOptions - Options to pass to this requestpublic CompletableFuture<AsyncTaskSingleIndex> batch(@Nonnull List<BatchOperation> operations)
All operations must have index name set to null
operations - the list of operations to perform on this index& subclassespublic CompletableFuture<AsyncTaskSingleIndex> batch(@Nonnull List<BatchOperation> operations, @Nonnull RequestOptions requestOptions)
All operations must have index name set to null
operations - the list of operations to perform on this indexrequestOptions - Options to pass to this request& subclassesCopyright © 2018. All rights reserved.