T - public interface SearchIndexRules<T> extends SearchIndexBase<T>
| Modifier and Type | Method and Description |
|---|---|
default RulesIterable |
browseRules()
Retrieve an index’s full list of rules using an iterator.
|
default RulesIterable |
browseRules(int hitsPerPage)
Retrieve an index’s full list of rules using an iterator.
|
default RulesIterable |
browseRules(int hitsPerPage,
RequestOptions requestOptions)
Retrieve an index’s full list of rules using an iterator.
|
default DeleteResponse |
clearRules()
Delete all rules in an index.
|
default DeleteResponse |
clearRules(Boolean forwardToReplicas)
Delete all rules in an index.
|
default DeleteResponse |
clearRules(Boolean forwardToReplicas,
RequestOptions requestOptions)
Delete all rules in an index.
|
default DeleteResponse |
clearRules(RequestOptions requestOptions)
Delete all rules in an index.
|
default CompletableFuture<DeleteResponse> |
clearRulesAsync()
Delete all rules in an index.
|
default CompletableFuture<DeleteResponse> |
clearRulesAsync(Boolean forwardToReplicas)
Delete all rules in an index.
|
default CompletableFuture<DeleteResponse> |
clearRulesAsync(Boolean forwardToReplicas,
RequestOptions requestOptions)
Delete all rules in an index.
|
default CompletableFuture<DeleteResponse> |
clearRulesAsync(RequestOptions requestOptions)
Delete all rules in an index.
|
default DeleteResponse |
deleteRule(String objectID)
Delete the rule for the given ruleId
|
default DeleteResponse |
deleteRule(String objectID,
RequestOptions requestOptions)
Delete the rule for the given ruleId
|
default CompletableFuture<DeleteResponse> |
deleteRuleAsync(String objectID)
Delete the rule for the given ruleId
|
default CompletableFuture<DeleteResponse> |
deleteRuleAsync(String objectID,
RequestOptions requestOptions)
Delete the rule for the given ruleId
|
default Rule |
getRule(String objectID)
Get the specified rule by its objectID
|
default Rule |
getRule(String objectID,
RequestOptions requestOptions)
Get the specified rule by its objectID
|
default CompletableFuture<Rule> |
getRuleAsync(String objectID)
Get the specified rule by its objectID
|
default CompletableFuture<Rule> |
getRuleAsync(String objectID,
RequestOptions requestOptions)
Get the specified rule by its objectID
|
default SaveRuleResponse |
replaceAllRules(Iterable<Rule> rules)
Push a new set of rules and erase all previous ones.
|
default SaveRuleResponse |
replaceAllRules(Iterable<Rule> rules,
Boolean forwardToReplicas)
Push a new set of rules and erase all previous ones.
|
default SaveRuleResponse |
replaceAllRules(Iterable<Rule> rules,
RequestOptions requestOptions)
Push a new set of rules and erase all previous ones.
|
default CompletableFuture<SaveRuleResponse> |
replaceAllRulesAsync(Iterable<Rule> rules)
Push a new set of rules and erase all previous ones.
|
default CompletableFuture<SaveRuleResponse> |
replaceAllRulesAsync(Iterable<Rule> rules,
Boolean forwardToReplicas)
Push a new set of rules and erase all previous ones.
|
default CompletableFuture<SaveRuleResponse> |
replaceAllRulesAsync(Iterable<Rule> rules,
RequestOptions requestOptions)
Push a new set of rules and erase all previous ones.
|
default SaveRuleResponse |
saveRule(Rule rule)
Create or update a single rule.
|
default SaveRuleResponse |
saveRule(Rule rule,
Boolean forwardToReplicas)
Create or update a single rule.
|
default SaveRuleResponse |
saveRule(Rule rule,
Boolean forwardToReplicas,
RequestOptions requestOptions)
Create or update a single rule.
|
default SaveRuleResponse |
saveRule(Rule rule,
RequestOptions requestOptions)
Create or update a single rule.
|
default CompletableFuture<SaveRuleResponse> |
saveRuleAsync(Rule rule)
Create or update a single rule.
|
default CompletableFuture<SaveRuleResponse> |
saveRuleAsync(Rule rule,
Boolean forwardToReplicas)
Create or update a single rule.
|
default CompletableFuture<SaveRuleResponse> |
saveRuleAsync(Rule rule,
Boolean forwardToReplicas,
RequestOptions requestOptions)
Create or update a single rule.
|
default CompletableFuture<SaveRuleResponse> |
saveRuleAsync(Rule rule,
RequestOptions requestOptions)
Create or update a single rule.
|
default SaveRuleResponse |
saveRules(Iterable<Rule> rules)
Create or update a specified set of rules, or all rules.
|
default SaveRuleResponse |
saveRules(Iterable<Rule> rules,
Boolean forwardToReplicas,
Boolean clearExistingRules)
Create or update a specified set of rules, or all rules.
|
default SaveRuleResponse |
saveRules(Iterable<Rule> rules,
Boolean forwardToReplicas,
Boolean clearExistingRules,
RequestOptions requestOptions)
Create or update a specified set of rules, or all rules.
|
default SaveRuleResponse |
saveRules(Iterable<Rule> rules,
RequestOptions requestOptions)
Create or update a specified set of rules, or all rules.
|
default CompletableFuture<SaveRuleResponse> |
saveRulesAsync(Iterable<Rule> rules)
Create or update a specified set of rules, or all rules.
|
default CompletableFuture<SaveRuleResponse> |
saveRulesAsync(Iterable<Rule> rules,
Boolean forwardToReplicas,
Boolean clearExistingRules)
Create or update a specified set of rules, or all rules.
|
default CompletableFuture<SaveRuleResponse> |
saveRulesAsync(Iterable<Rule> rules,
Boolean forwardToReplicas,
Boolean clearExistingRules,
RequestOptions requestOptions)
Create or update a specified set of rules, or all rules.
|
default CompletableFuture<SaveRuleResponse> |
saveRulesAsync(Iterable<Rule> rules,
RequestOptions requestOptions)
Create or update a specified set of rules, or all rules.
|
default SearchResult<Rule> |
searchRules(RuleQuery query)
Search for rules matching various criteria.
|
default SearchResult<Rule> |
searchRules(RuleQuery query,
RequestOptions requestOptions)
Search for rules matching various criteria.
|
default CompletableFuture<SearchResult<Rule>> |
searchRulesAsync(RuleQuery query)
Search for rules matching various criteria.
|
default CompletableFuture<SearchResult<Rule>> |
searchRulesAsync(RuleQuery query,
RequestOptions requestOptions)
Search for rules matching various criteria.
|
getClazz, getConfig, getTransport, getUrlEncodedIndexName, waitTask, waitTaskdefault Rule getRule(@Nonnull String objectID)
objectID - Algolia's objectIDAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault Rule getRule(@Nonnull String objectID, RequestOptions requestOptions)
objectID - Algolia's objectIDrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<Rule> getRuleAsync(@Nonnull String objectID)
objectID - Algolia's objectIDAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<Rule> getRuleAsync(@Nonnull String objectID, RequestOptions requestOptions)
objectID - Algolia's objectIDrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SearchResult<Rule> searchRules(@Nonnull RuleQuery query)
query - The search rule queryAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SearchResult<Rule> searchRules(@Nonnull RuleQuery query, RequestOptions requestOptions)
query - The search rule queryrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SearchResult<Rule>> searchRulesAsync(@Nonnull RuleQuery query)
query - The search rule queryAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SearchResult<Rule>> searchRulesAsync(@Nonnull RuleQuery query, RequestOptions requestOptions)
query - The search rule queryrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault RulesIterable browseRules()
default RulesIterable browseRules(int hitsPerPage)
hitsPerPage - Number of hits per page to retrieve default = 1000default RulesIterable browseRules(int hitsPerPage, RequestOptions requestOptions)
hitsPerPage - Number of hits per page to retrieve default = 1000requestOptions - Options to pass to this requestdefault SaveRuleResponse saveRule(@Nonnull Rule rule)
rule - A query ruleAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse saveRule(@Nonnull Rule rule, @Nonnull Boolean forwardToReplicas)
rule - A query ruleforwardToReplicas - Forward the request to the replicasAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse saveRule(@Nonnull Rule rule, @Nonnull Boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
rule - A query ruleforwardToReplicas - Forward the request to the replicasrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse saveRule(@Nonnull Rule rule, @Nonnull RequestOptions requestOptions)
rule - A query ruleAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> saveRuleAsync(@Nonnull Rule rule)
rule - A query ruleAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> saveRuleAsync(@Nonnull Rule rule, @Nonnull Boolean forwardToReplicas)
rule - A query ruleforwardToReplicas - Forward the request to the replicasAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> saveRuleAsync(@Nonnull Rule rule, @Nonnull Boolean forwardToReplicas, @Nonnull RequestOptions requestOptions)
rule - A query ruleforwardToReplicas - Forward the request to the replicasrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> saveRuleAsync(@Nonnull Rule rule, @Nonnull RequestOptions requestOptions)
rule - A query ruleAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse saveRules(@Nonnull Iterable<Rule> rules)
rules - List of rulesAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When the class doesn't have an objectID field or a
Jacksonannotation @JsonProperty(\"objectID\"")default SaveRuleResponse saveRules(@Nonnull Iterable<Rule> rules, @Nonnull Boolean forwardToReplicas, @Nonnull Boolean clearExistingRules)
rules - List of rulesforwardToReplicas - Forward to the replicas the requestclearExistingRules - Clear all existing rulesAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse saveRules(@Nonnull Iterable<Rule> rules, @Nonnull Boolean forwardToReplicas, @Nonnull Boolean clearExistingRules, @Nonnull RequestOptions requestOptions)
rules - List of rulesforwardToReplicas - Forward to the replicas the requestclearExistingRules - Clear all existing rulesrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse saveRules(@Nonnull Iterable<Rule> rules, RequestOptions requestOptions)
rules - List of rulesrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> saveRulesAsync(@Nonnull Iterable<Rule> rules)
rules - List of rulesAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When the class doesn't have an objectID field or a
Jacksonannotation @JsonProperty(\"objectID\"")default CompletableFuture<SaveRuleResponse> saveRulesAsync(@Nonnull Iterable<Rule> rules, @Nonnull Boolean forwardToReplicas, @Nonnull Boolean clearExistingRules)
rules - List of rulesforwardToReplicas - Forward to the replicas the requestclearExistingRules - Clear all existing rulesAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> saveRulesAsync(@Nonnull Iterable<Rule> rules, @Nonnull Boolean forwardToReplicas, @Nonnull Boolean clearExistingRules, @Nonnull RequestOptions requestOptions)
rules - List of rulesforwardToReplicas - Forward to the replicas the requestclearExistingRules - Clear all existing rulesrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> saveRulesAsync(@Nonnull Iterable<Rule> rules, RequestOptions requestOptions)
rules - List of rulesrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault DeleteResponse deleteRule(@Nonnull String objectID)
objectID - The rule objectIDAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault DeleteResponse deleteRule(@Nonnull String objectID, RequestOptions requestOptions)
objectID - The rule objectIDrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<DeleteResponse> deleteRuleAsync(@Nonnull String objectID)
objectID - The rule objectIDAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<DeleteResponse> deleteRuleAsync(@Nonnull String objectID, RequestOptions requestOptions)
objectID - The rule objectIDrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse replaceAllRules(@Nonnull Iterable<Rule> rules)
rules - List of rulesAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse replaceAllRules(@Nonnull Iterable<Rule> rules, @Nonnull Boolean forwardToReplicas)
rules - List of rulesforwardToReplicas - Forward to the replicas the requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SaveRuleResponse replaceAllRules(@Nonnull Iterable<Rule> rules, @Nonnull RequestOptions requestOptions)
rules - List of rulesrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> replaceAllRulesAsync(@Nonnull Iterable<Rule> rules)
rules - List of rulesAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> replaceAllRulesAsync(@Nonnull Iterable<Rule> rules, @Nonnull Boolean forwardToReplicas)
rules - List of rulesforwardToReplicas - Forward to the replicas the requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SaveRuleResponse> replaceAllRulesAsync(@Nonnull Iterable<Rule> rules, @Nonnull RequestOptions requestOptions)
rules - List of rulesrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault DeleteResponse clearRules()
AlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault DeleteResponse clearRules(@Nonnull Boolean forwardToReplicas)
forwardToReplicas - Forward the request to the replicas if soAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault DeleteResponse clearRules(@Nonnull Boolean forwardToReplicas, RequestOptions requestOptions)
forwardToReplicas - Forward the request to the replicas if sorequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault DeleteResponse clearRules(RequestOptions requestOptions)
requestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<DeleteResponse> clearRulesAsync()
AlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<DeleteResponse> clearRulesAsync(@Nonnull Boolean forwardToReplicas)
forwardToReplicas - Forward the request to the replicas if soAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<DeleteResponse> clearRulesAsync(@Nonnull Boolean forwardToReplicas, RequestOptions requestOptions)
forwardToReplicas - Forward the request to the replicas if sorequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<DeleteResponse> clearRulesAsync(RequestOptions requestOptions)
requestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationCopyright © 2019. All rights reserved.