public class AsyncIndex<T> extends Object
| Modifier and Type | Method | Description |
|---|---|---|
default CompletableFuture<CreateUpdateKey> |
addApiKey(ApiKey key) |
Add a key to this index
|
default CompletableFuture<CreateUpdateKey> |
addApiKey(ApiKey key,
RequestOptions requestOptions) |
Add a key to this index
|
default CompletableFuture<CreateUpdateKey> |
addKey(ApiKey key) |
Deprecated.
|
default CompletableFuture<AsyncTaskIndexing> |
addObject(String objectID,
T object) |
Add an object in this index with a unique identifier
|
default CompletableFuture<AsyncTaskIndexing> |
addObject(String objectID,
T object,
RequestOptions requestOptions) |
Add an object in this index with a unique identifier
|
default CompletableFuture<AsyncTaskIndexing> |
addObject(T object) |
Add an object in this index
|
default CompletableFuture<AsyncTaskIndexing> |
addObject(T object,
RequestOptions requestOptions) |
Add an object in this index
|
default CompletableFuture<AsyncTaskSingleIndex> |
addObjects(List<T> objects) |
Add several objects
|
default CompletableFuture<AsyncTaskSingleIndex> |
addObjects(List<T> objects,
RequestOptions requestOptions) |
Add several objects
|
CompletableFuture<AsyncTaskSingleIndex> |
batch(List<BatchOperation> operations) |
Custom batch
|
CompletableFuture<AsyncTaskSingleIndex> |
batch(List<BatchOperation> operations,
RequestOptions requestOptions) |
Custom batch
|
default CompletableFuture<AsyncTask> |
batchRules(List<Rule> rules) |
Add or Replace a list of Rules, no forward to replicas, and no replacement
|
default CompletableFuture<AsyncTask> |
batchRules(List<Rule> rules,
boolean forwardToReplicas) |
Add or Replace a list of Rules, no replacement
|
default CompletableFuture<AsyncTask> |
batchRules(List<Rule> rules,
boolean forwardToReplicas,
boolean clearExistingRules) |
Add or replace a list of Rules
|
default CompletableFuture<AsyncTask> |
batchRules(List<Rule> rules,
boolean forwardToReplicas,
boolean clearExistingRules,
RequestOptions requestOptions) |
Add or replace a list of Rules
|
default CompletableFuture<AsyncTask> |
batchRules(List<Rule> rules,
boolean forwardToReplicas,
RequestOptions requestOptions) |
Add or Replace a list of Rules, no replacement
|
default CompletableFuture<AsyncTask> |
batchRules(List<Rule> rules,
RequestOptions requestOptions) |
Add or Replace a list of Rules, no forward to replicas, and no replacement
|
default CompletableFuture<AsyncTask> |
batchSynonyms(List<AbstractSynonym> synonyms) |
Add or Replace a list of synonyms, no forward to slaves, and no replacement
|
default CompletableFuture<AsyncTask> |
batchSynonyms(List<AbstractSynonym> synonyms,
boolean forwardToReplicas) |
Add or Replace a list of synonyms, no replacement
|
default CompletableFuture<AsyncTask> |
batchSynonyms(List<AbstractSynonym> synonyms,
boolean forwardToReplicas,
boolean replaceExistingSynonyms) |
Add or Replace a list of synonyms
|
default CompletableFuture<AsyncTask> |
batchSynonyms(List<AbstractSynonym> synonyms,
boolean forwardToReplicas,
boolean replaceExistingSynonyms,
RequestOptions requestOptions) |
Add or Replace a list of synonyms
|
default CompletableFuture<AsyncTask> |
batchSynonyms(List<AbstractSynonym> synonyms,
boolean forwardToReplicas,
RequestOptions requestOptions) |
Add or Replace a list of synonyms, no replacement
|
default CompletableFuture<AsyncTask> |
batchSynonyms(List<AbstractSynonym> synonyms,
RequestOptions requestOptions) |
Add or Replace a list of synonyms, no forward to slaves, and no replacement
|
default CompletableFuture<AsyncTask> |
clear() |
Delete the index content without removing settings and index specific API keys.
|
default CompletableFuture<AsyncTask> |
clear(RequestOptions requestOptions) |
Delete the index content without removing settings and index specific API keys.
|
default CompletableFuture<AsyncTask> |
clearRules() |
Clear all Rules and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
clearRules(boolean forwardToReplicas) |
Clears all Rules
|
default CompletableFuture<AsyncTask> |
clearRules(boolean forwardToReplicas,
RequestOptions requestOptions) |
Clears all Rules
|
default CompletableFuture<AsyncTask> |
clearRules(RequestOptions requestOptions) |
Clear all Rules and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
clearSynonyms() |
Clear all synonyms and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
clearSynonyms(boolean forwardToReplicas) |
Clears all synonyms
|
default CompletableFuture<AsyncTask> |
clearSynonyms(boolean forwardToReplicas,
RequestOptions requestOptions) |
Clears all synonyms
|
default CompletableFuture<AsyncTask> |
clearSynonyms(RequestOptions requestOptions) |
Clear all synonyms and NOT forwarding it to the slaves
|
default CompletableFuture<AsyncTask> |
copyTo(String dstIndexName) |
Copy an existing index
|
default CompletableFuture<AsyncTask> |
copyTo(String dstIndexName,
RequestOptions requestOptions) |
Copy an existing index
|
default CompletableFuture<AsyncTask> |
copyTo(String dstIndexName,
List<String> scopes) |
Copy an existing index
|
default CompletableFuture<AsyncTask> |
copyTo(String dstIndexName,
List<String> scopes,
RequestOptions requestOptions) |
Copy an existing index
|
default CompletableFuture<AsyncTask> |
delete() |
Deletes the index
|
default CompletableFuture<AsyncTask> |
delete(RequestOptions requestOptions) |
Deletes the index
|
default CompletableFuture<DeleteKey> |
deleteApiKey(String key) |
Delete a key by name from this index
|
default CompletableFuture<DeleteKey> |
deleteApiKey(String key,
RequestOptions requestOptions) |
Delete a key by name from this index
|
default CompletableFuture<AsyncTask> |
deleteBy(Query query) |
Delete records matching a query
|
default CompletableFuture<AsyncTask> |
deleteBy(Query query,
RequestOptions requestOptions) |
Delete records matching a query Deprecated, use deleteBy
|
default CompletableFuture<DeleteKey> |
deleteKey(String key) |
Deprecated.
|
default CompletableFuture<AsyncTask> |
deleteObject(String objectID) |
Delete an object from the index
|
default CompletableFuture<AsyncTask> |
deleteObject(String objectID,
RequestOptions requestOptions) |
Delete an object from the index
|
default CompletableFuture<AsyncTaskSingleIndex> |
deleteObjects(List<String> objectIDs) |
Delete objects from the index
|
default CompletableFuture<AsyncTaskSingleIndex> |
deleteObjects(List<String> objectIDs,
RequestOptions requestOptions) |
Delete objects from the index
|
default CompletableFuture<AsyncTask> |
deleteRule(String ruleID) |
Deletes a rule by ID and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
deleteRule(String ruleID,
boolean forwardToReplicas) |
Deletes a rule
|
default CompletableFuture<AsyncTask> |
deleteRule(String ruleID,
boolean forwardToReplicas,
RequestOptions requestOptions) |
Deletes a rule
|
default CompletableFuture<AsyncTask> |
deleteRule(String ruleID,
RequestOptions requestOptions) |
Deletes a rule by ID and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
deleteSynonym(String synonymID) |
Deletes a synonym by ID and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
deleteSynonym(String synonymID,
boolean forwardToReplicas) |
Deletes a synonym
|
default CompletableFuture<AsyncTask> |
deleteSynonym(String synonymID,
boolean forwardToReplicas,
RequestOptions requestOptions) |
Deletes a synonym
|
default CompletableFuture<AsyncTask> |
deleteSynonym(String synonymID,
RequestOptions requestOptions) |
Deletes a synonym by ID and NOT forwarding it to the slaves
|
AsyncAPIClient |
getApiClient() |
|
default CompletableFuture<Optional<ApiKey>> |
getApiKey(String key) |
Get a key by name from this index
|
default CompletableFuture<Optional<ApiKey>> |
getApiKey(String key,
RequestOptions requestOptions) |
Get a key by name from this index
|
default CompletableFuture<Optional<ApiKey>> |
getKey(String key) |
Deprecated.
|
Class<T> |
getKlass() |
|
String |
getName() |
|
default CompletableFuture<Optional<T>> |
getObject(String objectID) |
Get an object from this index
|
default CompletableFuture<Optional<T>> |
getObject(String objectID,
RequestOptions requestOptions) |
Get an object from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs) |
Get several objects from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs,
RequestOptions requestOptions) |
Get several objects from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs,
List<String> attributesToRetrieve) |
Get several objects from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs,
List<String> attributesToRetrieve,
RequestOptions requestOptions) |
Get several objects from this index
|
default CompletableFuture<Optional<Rule>> |
getRule(String ruleID) |
Get a rule by ID
|
default CompletableFuture<Optional<Rule>> |
getRule(String ruleID,
RequestOptions requestOptions) |
Get a rule by ID
|
default CompletableFuture<IndexSettings> |
getSettings() |
Get settings of this index
|
default CompletableFuture<IndexSettings> |
getSettings(RequestOptions requestOptions) |
Get settings of this index
|
default CompletableFuture<Optional<AbstractSynonym>> |
getSynonym(String synonymID) |
Get a synonym by ID
|
default CompletableFuture<Optional<AbstractSynonym>> |
getSynonym(String synonymID,
RequestOptions requestOptions) |
Get a synonym by ID
|
default CompletableFuture<List<ApiKey>> |
listApiKeys() |
List keys of this index
|
default CompletableFuture<List<ApiKey>> |
listApiKeys(RequestOptions requestOptions) |
List keys of this index
|
default CompletableFuture<List<ApiKey>> |
listKeys() |
Deprecated.
|
default CompletableFuture<AsyncTask> |
moveTo(String dstIndexName) |
Moves an existing index
|
default CompletableFuture<AsyncTask> |
moveTo(String dstIndexName,
RequestOptions requestOptions) |
Moves an existing index
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObject(PartialUpdateOperation operation) |
Partially update an object, create the object if it does not exist
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObject(PartialUpdateOperation operation,
boolean createIfNotExists) |
Partially update an object
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObject(PartialUpdateOperation operation,
boolean createIfNotExists,
RequestOptions requestOptions) |
Partially update an object
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObject(PartialUpdateOperation operation,
RequestOptions requestOptions) |
Partially update an object, create the object if it does not exist
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObject(String objectID,
Object object) |
Partially update an object
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObject(String objectID,
Object object,
RequestOptions requestOptions) |
Partially update an object
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObjects(List<Object> objects) |
Partially update a objects
|
default CompletableFuture<AsyncTaskSingleIndex> |
partialUpdateObjects(List<Object> objects,
RequestOptions requestOptions) |
Partially update a objects
|
default CompletableFuture<AsyncTask> |
saveObject(String objectID,
T object) |
Override the content of object
|
default CompletableFuture<AsyncTask> |
saveObject(String objectID,
T object,
RequestOptions requestOptions) |
Override the content of object
|
default CompletableFuture<AsyncTaskSingleIndex> |
saveObjects(List<T> objects) |
Override the content the list of objects
|
default CompletableFuture<AsyncTaskSingleIndex> |
saveObjects(List<T> objects,
RequestOptions requestOptions) |
Override the content the list of objects
|
default CompletableFuture<AsyncTask> |
saveRule(String ruleID,
Rule rule) |
Saves/updates a rule without replacing it and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
saveRule(String ruleID,
Rule rule,
boolean forwardToReplicas) |
Saves/updates a rule
|
default CompletableFuture<AsyncTask> |
saveRule(String ruleID,
Rule rule,
boolean forwardToReplicas,
RequestOptions requestOptions) |
Saves/updates a rule
|
default CompletableFuture<AsyncTask> |
saveRule(String ruleID,
Rule rule,
RequestOptions requestOptions) |
Saves/updates a rule without replacing it and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
saveSynonym(String synonymID,
AbstractSynonym content) |
Saves/updates a synonym without replacing it and NOT forwarding it to the replicas
|
default CompletableFuture<AsyncTask> |
saveSynonym(String synonymID,
AbstractSynonym content,
boolean forwardToReplicas) |
Saves/updates a synonym without replacing
|
default CompletableFuture<AsyncTask> |
saveSynonym(String synonymID,
AbstractSynonym content,
boolean forwardToReplicas,
boolean replaceExistingSynonyms) |
Saves/updates a synonym
|
default CompletableFuture<AsyncTask> |
saveSynonym(String synonymID,
AbstractSynonym content,
boolean forwardToReplicas,
boolean replaceExistingSynonyms,
RequestOptions requestOptions) |
Saves/updates a synonym
|
default CompletableFuture<AsyncTask> |
saveSynonym(String synonymID,
AbstractSynonym content,
boolean forwardToReplicas,
RequestOptions requestOptions) |
Saves/updates a synonym without replacing
|
default CompletableFuture<AsyncTask> |
saveSynonym(String synonymID,
AbstractSynonym content,
RequestOptions requestOptions) |
Saves/updates a synonym without replacing it and NOT forwarding it to the slaves
|
CompletableFuture<SearchResult<T>> |
search(Query query) |
Search in the index
|
CompletableFuture<SearchResult<T>> |
search(Query query,
RequestOptions requestOptions) |
Search in the index
|
default CompletableFuture<SearchFacetResult> |
searchFacet(String facetName,
String facetQuery) |
Deprecated.
|
default CompletableFuture<SearchFacetResult> |
searchFacet(String facetName,
String facetQuery,
Query query) |
Deprecated.
|
default CompletableFuture<SearchFacetResult> |
searchForFacetValues(String facetName,
String facetQuery) |
Search in a facet
|
default CompletableFuture<SearchFacetResult> |
searchForFacetValues(String facetName,
String facetQuery,
Query query) |
Search in a facet
|
default CompletableFuture<SearchFacetResult> |
searchForFacetValues(String facetName,
String facetQuery,
Query query,
RequestOptions requestOptions) |
Search in a facet
|
default CompletableFuture<SearchFacetResult> |
searchForFacetValues(String facetName,
String facetQuery,
RequestOptions requestOptions) |
Search in a facet
|
default CompletableFuture<SearchFacetResult> |
searchInFacetValues(String facetName,
String facetQuery) |
Deprecated.
|
default CompletableFuture<SearchFacetResult> |
searchInFacetValues(String facetName,
String facetQuery,
Query query) |
Deprecated.
|
default CompletableFuture<SearchRuleResult> |
searchRules(RuleQuery query) |
Search for Rules
|
default CompletableFuture<SearchRuleResult> |
searchRules(RuleQuery query,
RequestOptions requestOptions) |
Search for Rules
|
default CompletableFuture<SearchSynonymResult> |
searchSynonyms(SynonymQuery query) |
Search for synonyms
|
default CompletableFuture<SearchSynonymResult> |
searchSynonyms(SynonymQuery query,
RequestOptions requestOptions) |
Search for synonyms
|
default CompletableFuture<AsyncTask> |
setSettings(IndexSettings settings) |
Set settings of this index, and do not forward to replicas
|
default CompletableFuture<AsyncTask> |
setSettings(IndexSettings settings,
RequestOptions requestOptions) |
Set settings of this index, and do not forward to slaves
|
default CompletableFuture<AsyncTask> |
setSettings(IndexSettings settings,
Boolean forwardToReplicas) |
Set settings of this index
|
default CompletableFuture<AsyncTask> |
setSettings(IndexSettings settings,
Boolean forwardToReplicas,
RequestOptions requestOptions) |
Set settings of this index
|
String |
toString() |
|
default CompletableFuture<CreateUpdateKey> |
updateApiKey(String keyName,
ApiKey key) |
Update a key by name from this index
|
default CompletableFuture<CreateUpdateKey> |
updateApiKey(String keyName,
ApiKey key,
RequestOptions requestOptions) |
Update a key by name from this index
|
default CompletableFuture<CreateUpdateKey> |
updateKey(String keyName,
ApiKey key) |
Deprecated.
|
default void |
waitTask(AsyncTask task) |
Wait for the completion of a task, for 100ms
|
default void |
waitTask(AsyncTask task,
long timeToWait) |
Wait for the completion of a task
|
default void |
waitTask(AsyncTask task,
long timeToWait,
RequestOptions requestOptions) |
Wait for the completion of a task
|
default void |
waitTask(AsyncTask task,
RequestOptions requestOptions) |
Wait for the completion of a task, for 100ms
|
public String getName()
public AsyncAPIClient getApiClient()
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 subclassespublic default CompletableFuture<AsyncTask> moveTo(@Nonnull String dstIndexName)
dstIndexName - the new index name that will contains a copy of srcIndexName (destination
will be overriten if it already exist)public default CompletableFuture<AsyncTask> moveTo(@Nonnull String dstIndexName, @Nonnull RequestOptions requestOptions)
dstIndexName - the new index name that will contains a copy of srcIndexName (destination
will be overriten if it already exist)requestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> copyTo(@Nonnull String dstIndexName)
dstIndexName - the new index name that will contains a copy of srcIndexName (destination
will be overridden if it already exist)public default CompletableFuture<AsyncTask> copyTo(@Nonnull String dstIndexName, @Nonnull RequestOptions requestOptions)
dstIndexName - the new index name that will contains a copy of srcIndexName (destination
will be overridden if it already exist)requestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> copyTo(@Nonnull String dstIndexName, @Nonnull List<String> scopes, @Nonnull RequestOptions requestOptions)
dstIndexName - the new index name that will contains a copy of srcIndexName (destination
will be overridden if it already exist)scopes - the list of scopes to copyrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> copyTo(@Nonnull String dstIndexName, @Nonnull List<String> scopes)
dstIndexName - the new index name that will contains a copy of srcIndexName (destination
will be overridden if it already exist)scopes - the list of scopes to copypublic default CompletableFuture<AsyncTask> delete()
public default CompletableFuture<AsyncTask> delete(@Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> clear()
public default CompletableFuture<AsyncTask> clear(@Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestpublic default void waitTask(@Nonnull AsyncTask task, long timeToWait)
task - task to wait fortimeToWait - the time to wait in millisecondspublic default void waitTask(@Nonnull AsyncTask task, long timeToWait, @Nonnull RequestOptions requestOptions)
task - task to wait fortimeToWait - the time to wait in millisecondsrequestOptions - Options to pass to this requestpublic default void waitTask(@Nonnull AsyncTask task)
task - task to wait forpublic default void waitTask(@Nonnull AsyncTask task, @Nonnull RequestOptions requestOptions)
task - task to wait forrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull T object)
object - object to addpublic default CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull T object, @Nonnull RequestOptions requestOptions)
object - object to addrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull String objectID, @Nonnull T object)
objectID - the objectID associated to this object (if this objectID already exist the old
object will be overridden)object - object to addpublic default CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull String objectID, @Nonnull T object, @Nonnull RequestOptions requestOptions)
objectID - the objectID associated to this object (if this objectID already exist the old
object will be overridden)object - object to addrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTaskSingleIndex> addObjects(@Nonnull List<T> objects)
objects - objects to addpublic default CompletableFuture<AsyncTaskSingleIndex> addObjects(@Nonnull List<T> objects, @Nonnull RequestOptions requestOptions)
objects - objects to addrequestOptions - Options to pass to this requestpublic default CompletableFuture<Optional<T>> getObject(@Nonnull String objectID)
objectID - the unique identifier of the object to retrievepublic default CompletableFuture<Optional<T>> getObject(@Nonnull String objectID, @Nonnull RequestOptions requestOptions)
objectID - the unique identifier of the object to retrieverequestOptions - Options to pass to this requestpublic default CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs)
objectIDs - the list of unique identifier of objects to retrievepublic default CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs, @Nonnull RequestOptions requestOptions)
objectIDs - the list of unique identifier of objects to retrieverequestOptions - Options to pass to this requestpublic default CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs, @Nonnull List<String> attributesToRetrieve)
objectIDs - the list of unique identifier of objects to retrieveattributesToRetrieve - the list of attributes to retrieve for these objectspublic default CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs, @Nonnull List<String> attributesToRetrieve, @Nonnull RequestOptions requestOptions)
objectIDs - the list of unique identifier of objects to retrieveattributesToRetrieve - the list of attributes to retrieve for these objectsrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> saveObject(@Nonnull String objectID, @Nonnull T object)
objectID - the unique identifier of the object to retrieveobject - the object to updatepublic default CompletableFuture<AsyncTask> saveObject(@Nonnull String objectID, @Nonnull T object, @Nonnull RequestOptions requestOptions)
objectID - the unique identifier of the object to retrieveobject - the object to updaterequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTaskSingleIndex> saveObjects(@Nonnull List<T> objects)
objects - the list objects to updatepublic default CompletableFuture<AsyncTaskSingleIndex> saveObjects(@Nonnull List<T> objects, @Nonnull RequestOptions requestOptions)
objects - the list objects to updaterequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> deleteObject(@Nonnull String objectID)
objectID - the unique identifier of the object to retrievepublic default CompletableFuture<AsyncTask> deleteObject(@Nonnull String objectID, @Nonnull RequestOptions requestOptions)
objectID - the unique identifier of the object to retrieverequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTaskSingleIndex> deleteObjects(@Nonnull List<String> objectIDs)
objectIDs - the list of unique identifier of the object to retrievepublic default CompletableFuture<AsyncTaskSingleIndex> deleteObjects(@Nonnull List<String> objectIDs, @Nonnull RequestOptions requestOptions)
objectIDs - the list of unique identifier of the object to retrieverequestOptions - Options to pass to this requestpublic default CompletableFuture<IndexSettings> getSettings()
public default CompletableFuture<IndexSettings> getSettings(@Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> setSettings(@Nonnull IndexSettings settings)
settings - the settings to setpublic default CompletableFuture<AsyncTask> setSettings(@Nonnull IndexSettings settings, @Nonnull RequestOptions requestOptions)
settings - the settings to setrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> setSettings(@Nonnull IndexSettings settings, @Nonnull Boolean forwardToReplicas)
settings - the settings to setforwardToReplicas - should these updates be forwarded to the replicaspublic default CompletableFuture<AsyncTask> setSettings(@Nonnull IndexSettings settings, @Nonnull Boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
settings - the settings to setforwardToReplicas - should these updates be forwarded to the slavesrequestOptions - Options to pass to this request@Deprecated public default CompletableFuture<List<ApiKey>> listKeys()
public default CompletableFuture<List<ApiKey>> listApiKeys()
public default CompletableFuture<List<ApiKey>> listApiKeys(@Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this request@Deprecated public default CompletableFuture<Optional<ApiKey>> getKey(@Nonnull String key)
public default CompletableFuture<Optional<ApiKey>> getApiKey(@Nonnull String key)
key - the key namepublic default CompletableFuture<Optional<ApiKey>> getApiKey(@Nonnull String key, @Nonnull RequestOptions requestOptions)
key - the key namerequestOptions - Options to pass to this request@Deprecated public default CompletableFuture<DeleteKey> deleteKey(@Nonnull String key)
public default CompletableFuture<DeleteKey> deleteApiKey(@Nonnull String key)
key - the key namepublic default CompletableFuture<DeleteKey> deleteApiKey(@Nonnull String key, @Nonnull RequestOptions requestOptions)
key - the key namerequestOptions - Options to pass to this request@Deprecated public default CompletableFuture<CreateUpdateKey> addKey(@Nonnull ApiKey key)
public default CompletableFuture<CreateUpdateKey> addApiKey(@Nonnull ApiKey key)
key - the keypublic default CompletableFuture<CreateUpdateKey> addApiKey(@Nonnull ApiKey key, @Nonnull RequestOptions requestOptions)
key - the keyrequestOptions - Options to pass to this request@Deprecated public default CompletableFuture<CreateUpdateKey> updateKey(@Nonnull String keyName, @Nonnull ApiKey key)
public default CompletableFuture<CreateUpdateKey> updateApiKey(@Nonnull String keyName, @Nonnull ApiKey key)
keyName - the key namekey - the key to updatepublic default CompletableFuture<CreateUpdateKey> updateApiKey(@Nonnull String keyName, @Nonnull ApiKey key, @Nonnull RequestOptions requestOptions)
keyName - the key namekey - the key to updaterequestOptions - Options to pass to this requestpublic default CompletableFuture<SearchFacetResult> searchForFacetValues(@Nonnull String facetName, @Nonnull String facetQuery, Query query)
facetName - The name of the facet to search infacetQuery - The search query for this facetquery - the query (not required)public default CompletableFuture<SearchFacetResult> searchForFacetValues(@Nonnull String facetName, @Nonnull String facetQuery, Query query, @Nonnull RequestOptions requestOptions)
facetName - The name of the facet to search infacetQuery - The search query for this facetquery - the query (not required)requestOptions - Options to pass to this requestpublic default CompletableFuture<SearchFacetResult> searchForFacetValues(@Nonnull String facetName, @Nonnull String facetQuery)
facetName - The name of the facet to search infacetQuery - The search query for this facetpublic default CompletableFuture<SearchFacetResult> searchForFacetValues(@Nonnull String facetName, @Nonnull String facetQuery, @Nonnull RequestOptions requestOptions)
facetName - The name of the facet to search infacetQuery - The search query for this facetrequestOptions - Options to pass to this request@Deprecated public default CompletableFuture<SearchFacetResult> searchInFacetValues(@Nonnull String facetName, @Nonnull String facetQuery, Query query)
@Deprecated public default CompletableFuture<SearchFacetResult> searchInFacetValues(@Nonnull String facetName, @Nonnull String facetQuery)
@Deprecated public default CompletableFuture<SearchFacetResult> searchFacet(@Nonnull String facetName, @Nonnull String facetQuery, Query query)
@Deprecated public default CompletableFuture<SearchFacetResult> searchFacet(@Nonnull String facetName, @Nonnull String facetQuery)
public default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObject(@Nonnull String objectID, @Nonnull Object object)
objectID - the ID of object to updateobject - the object to update subclassespublic default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObject(@Nonnull String objectID, @Nonnull Object object, @Nonnull RequestOptions requestOptions)
objectID - the ID of object to updateobject - the object to updaterequestOptions - Options to pass to this request subclassespublic default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObjects(@Nonnull List<Object> objects)
objects - the list of objects to update (with an objectID)public default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObjects(@Nonnull List<Object> objects, @Nonnull RequestOptions requestOptions)
objects - the list of objects to update (with an objectID)requestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObject(@Nonnull PartialUpdateOperation operation)
operation - the operation to perform on this object subclassespublic default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObject(@Nonnull PartialUpdateOperation operation, @Nonnull RequestOptions requestOptions)
operation - the operation to perform on this objectrequestOptions - Options to pass to this request subclassespublic default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObject(@Nonnull PartialUpdateOperation operation, boolean createIfNotExists)
operation - the operation to perform on this objectcreateIfNotExists - should the object be created or not subclassespublic default CompletableFuture<AsyncTaskSingleIndex> partialUpdateObject(@Nonnull PartialUpdateOperation operation, boolean createIfNotExists, @Nonnull RequestOptions requestOptions)
operation - the operation to perform on this objectcreateIfNotExists - should the object be created or notrequestOptions - Options to pass to this request subclassespublic default CompletableFuture<AsyncTask> saveSynonym(@Nonnull String synonymID, @Nonnull AbstractSynonym content)
synonymID - the id of the synonymcontent - the synonympublic default CompletableFuture<AsyncTask> saveSynonym(@Nonnull String synonymID, @Nonnull AbstractSynonym content, @Nonnull RequestOptions requestOptions)
synonymID - the id of the synonymcontent - the synonymrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> saveSynonym(@Nonnull String synonymID, @Nonnull AbstractSynonym content, boolean forwardToReplicas)
synonymID - the id of the synonymcontent - the synonymforwardToReplicas - should this request be forwarded to replicaspublic default CompletableFuture<AsyncTask> saveSynonym(@Nonnull String synonymID, @Nonnull AbstractSynonym content, boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
synonymID - the id of the synonymcontent - the synonymforwardToReplicas - should this request be forwarded to slavesrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> saveSynonym(@Nonnull String synonymID, @Nonnull AbstractSynonym content, boolean forwardToReplicas, boolean replaceExistingSynonyms)
synonymID - the id of the synonymcontent - the synonymforwardToReplicas - should this request be forwarded to replicasreplaceExistingSynonyms - should replace if this synonyms existspublic default CompletableFuture<AsyncTask> saveSynonym(@Nonnull String synonymID, @Nonnull AbstractSynonym content, boolean forwardToReplicas, boolean replaceExistingSynonyms, @Nonnull RequestOptions requestOptions)
synonymID - the id of the synonymcontent - the synonymforwardToReplicas - should this request be forwarded to slavesreplaceExistingSynonyms - should replace if this synonyms existsrequestOptions - Options to pass to this requestpublic default CompletableFuture<Optional<AbstractSynonym>> getSynonym(@Nonnull String synonymID)
synonymID - the id of the synonympublic default CompletableFuture<Optional<AbstractSynonym>> getSynonym(@Nonnull String synonymID, @Nonnull RequestOptions requestOptions)
synonymID - the id of the synonymrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> deleteSynonym(@Nonnull String synonymID)
synonymID - the id of the synonympublic default CompletableFuture<AsyncTask> deleteSynonym(@Nonnull String synonymID, @Nonnull RequestOptions requestOptions)
synonymID - the id of the synonymrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> deleteSynonym(@Nonnull String synonymID, boolean forwardToReplicas)
synonymID - the id of the synonymforwardToReplicas - should this request be forwarded to replicaspublic default CompletableFuture<AsyncTask> deleteSynonym(@Nonnull String synonymID, boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
synonymID - the id of the synonymforwardToReplicas - should this request be forwarded to slavesrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> clearSynonyms()
public default CompletableFuture<AsyncTask> clearSynonyms(@Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> clearSynonyms(boolean forwardToReplicas)
public default CompletableFuture<AsyncTask> clearSynonyms(boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestpublic default CompletableFuture<SearchSynonymResult> searchSynonyms(@Nonnull SynonymQuery query)
query - the querypublic default CompletableFuture<SearchSynonymResult> searchSynonyms(@Nonnull SynonymQuery query, @Nonnull RequestOptions requestOptions)
query - the queryrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> batchSynonyms(@Nonnull List<AbstractSynonym> synonyms, boolean forwardToReplicas, boolean replaceExistingSynonyms)
synonyms - List of synonymsforwardToReplicas - Forward the operation to the slave indicesreplaceExistingSynonyms - Replace the existing synonyms with this batchpublic default CompletableFuture<AsyncTask> batchSynonyms(@Nonnull List<AbstractSynonym> synonyms, boolean forwardToReplicas, boolean replaceExistingSynonyms, @Nonnull RequestOptions requestOptions)
synonyms - List of synonymsforwardToReplicas - Forward the operation to the slave indicesreplaceExistingSynonyms - Replace the existing synonyms with this batchrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> batchSynonyms(@Nonnull List<AbstractSynonym> synonyms, boolean forwardToReplicas)
synonyms - List of synonymsforwardToReplicas - Forward the operation to the slave indicespublic default CompletableFuture<AsyncTask> batchSynonyms(@Nonnull List<AbstractSynonym> synonyms, boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
synonyms - List of synonymsforwardToReplicas - Forward the operation to the slave indicesrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> batchSynonyms(@Nonnull List<AbstractSynonym> synonyms)
synonyms - List of synonymspublic default CompletableFuture<AsyncTask> batchSynonyms(@Nonnull List<AbstractSynonym> synonyms, @Nonnull RequestOptions requestOptions)
synonyms - List of synonymsrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> saveRule(@Nonnull String ruleID, @Nonnull Rule rule)
ruleID - the id of the query rulerule - the query rulepublic default CompletableFuture<AsyncTask> saveRule(@Nonnull String ruleID, @Nonnull Rule rule, @Nonnull RequestOptions requestOptions)
ruleID - the id of the query rulerule - the query rulerequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> saveRule(@Nonnull String ruleID, @Nonnull Rule rule, boolean forwardToReplicas)
ruleID - the id of the query rulerule - the query ruleforwardToReplicas - should this request be forwarded to replicaspublic default CompletableFuture<AsyncTask> saveRule(@Nonnull String ruleID, @Nonnull Rule rule, boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
ruleID - the id of the query rulerule - the query ruleforwardToReplicas - should this request be forwarded to replicasrequestOptions - Options to pass to this requestpublic default CompletableFuture<Optional<Rule>> getRule(@Nonnull String ruleID)
ruleID - the id of the rulepublic default CompletableFuture<Optional<Rule>> getRule(@Nonnull String ruleID, @Nonnull RequestOptions requestOptions)
ruleID - the id of the rulerequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> deleteRule(@Nonnull String ruleID)
ruleID - the id of the query rulepublic default CompletableFuture<AsyncTask> deleteRule(@Nonnull String ruleID, @Nonnull RequestOptions requestOptions)
ruleID - the id of the query rulerequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> deleteRule(@Nonnull String ruleID, boolean forwardToReplicas)
ruleID - the id of the ruleforwardToReplicas - should this request be forwarded to replicaspublic default CompletableFuture<AsyncTask> deleteRule(@Nonnull String ruleID, boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
ruleID - the id of the ruleforwardToReplicas - should this request be forwarded to replicasrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> clearRules()
public default CompletableFuture<AsyncTask> clearRules(@Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> clearRules(boolean forwardToReplicas)
public default CompletableFuture<AsyncTask> clearRules(boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestpublic default CompletableFuture<SearchRuleResult> searchRules(@Nonnull RuleQuery query)
query - the querypublic default CompletableFuture<SearchRuleResult> searchRules(@Nonnull RuleQuery query, @Nonnull RequestOptions requestOptions)
requestOptions - Options to pass to this requestquery - the querypublic default CompletableFuture<AsyncTask> batchRules(@Nonnull List<Rule> rules, boolean forwardToReplicas, boolean clearExistingRules)
rules - List of RulesforwardToReplicas - Forward the operation to the replicas indicesclearExistingRules - Replace the existing Rules with this batchpublic default CompletableFuture<AsyncTask> batchRules(@Nonnull List<Rule> rules, boolean forwardToReplicas, boolean clearExistingRules, @Nonnull RequestOptions requestOptions)
rules - List of RulesforwardToReplicas - Forward the operation to the replicas indicesclearExistingRules - Replace the existing Rules with this batchrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> batchRules(@Nonnull List<Rule> rules, boolean forwardToReplicas)
rules - List of RulesforwardToReplicas - Forward the operation to the slave indicespublic default CompletableFuture<AsyncTask> batchRules(@Nonnull List<Rule> rules, boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
rules - List of RulesforwardToReplicas - Forward the operation to the slave indicesrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> batchRules(@Nonnull List<Rule> rules)
rules - List of Rulespublic default CompletableFuture<AsyncTask> batchRules(@Nonnull List<Rule> rules, @Nonnull RequestOptions requestOptions)
rules - List of RulesrequestOptions - Options to pass to this requestpublic default CompletableFuture<AsyncTask> deleteBy(@Nonnull Query query)
query - The querypublic default CompletableFuture<AsyncTask> deleteBy(@Nonnull Query query, @Nonnull RequestOptions requestOptions)
query - The queryrequestOptions - Options to pass to this requestCopyright © 2017. All rights reserved.