Package com.algolia.api
Class RecommendClient
java.lang.Object
com.algolia.ApiClient
com.algolia.api.RecommendClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionRecommendClient(String appId, String apiKey) RecommendClient(String appId, String apiKey, ClientOptions options) -
Method Summary
Modifier and TypeMethodDescriptioncustomDelete(String path) This method allow you to send requests to the Algolia REST API.customDelete(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customDelete(String path, Map<String, Object> parameters) This method allow you to send requests to the Algolia REST API.customDelete(String path, Map<String, Object> parameters, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customDeleteAsync(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync(String path, Map<String, Object> parameters) (asynchronously) This method allow you to send requests to the Algolia REST API.customDeleteAsync(String path, Map<String, Object> parameters, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customGet(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customGetAsync(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync(String path, Map<String, Object> parameters) (asynchronously) This method allow you to send requests to the Algolia REST API.customGetAsync(String path, Map<String, Object> parameters, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.customPost(String path) This method allow you to send requests to the Algolia REST API.customPost(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customPost(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.customPostAsync(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customPostAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.customPostAsync(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customPut(String path, RequestOptions requestOptions) This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.This method allow you to send requests to the Algolia REST API.customPutAsync(String path) (asynchronously) This method allow you to send requests to the Algolia REST API.customPutAsync(String path, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.(asynchronously) This method allow you to send requests to the Algolia REST API.customPutAsync(String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) (asynchronously) This method allow you to send requests to the Algolia REST API.deleteRecommendRule(String indexName, RecommendModels model, String objectID) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).deleteRecommendRule(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).deleteRecommendRuleAsync(String indexName, RecommendModels model, String objectID) (asynchronously) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).deleteRecommendRuleAsync(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) (asynchronously) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).getRecommendations(GetRecommendationsParams getRecommendationsParams) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).getRecommendations(GetRecommendationsParams getRecommendationsParams, RequestOptions requestOptions) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).getRecommendationsAsync(GetRecommendationsParams getRecommendationsParams) (asynchronously) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).getRecommendationsAsync(GetRecommendationsParams getRecommendationsParams, RequestOptions requestOptions) (asynchronously) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).getRecommendRule(String indexName, RecommendModels model, String objectID) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).getRecommendRule(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).getRecommendRuleAsync(String indexName, RecommendModels model, String objectID) (asynchronously) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).getRecommendRuleAsync(String indexName, RecommendModels model, String objectID, RequestOptions requestOptions) (asynchronously) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).getRecommendStatus(String indexName, RecommendModels model, Long taskID) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value.getRecommendStatus(String indexName, RecommendModels model, Long taskID, RequestOptions requestOptions) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value.getRecommendStatusAsync(String indexName, RecommendModels model, Long taskID) (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value.getRecommendStatusAsync(String indexName, RecommendModels model, Long taskID, RequestOptions requestOptions) (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value.searchRecommendRules(String indexName, RecommendModels model) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).searchRecommendRules(String indexName, RecommendModels model, RequestOptions requestOptions) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).searchRecommendRules(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).searchRecommendRules(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams, RequestOptions requestOptions) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).searchRecommendRulesAsync(String indexName, RecommendModels model) (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).searchRecommendRulesAsync(String indexName, RecommendModels model, RequestOptions requestOptions) (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).searchRecommendRulesAsync(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams) (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).searchRecommendRulesAsync(String indexName, RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams, RequestOptions requestOptions) (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).Methods inherited from class com.algolia.ApiClient
close, executeAsync, executeAsync
-
Constructor Details
-
RecommendClient
-
RecommendClient
-
-
Method Details
-
customDelete
public Object customDelete(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customDelete
public Object customDelete(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customDelete
public Object customDelete(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customDelete
This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customDeleteAsync
public CompletableFuture<Object> customDeleteAsync(@Nonnull String path) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGet
public Object customGet(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGet
public Object customGet(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGet
public Object customGet(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGet
This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull String path, Map<String, Object> parameters, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull String path, Map<String, Object> parameters) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customGetAsync
public CompletableFuture<Object> customGetAsync(@Nonnull String path) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPost
public Object customPost(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPost
public Object customPost(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPost
public Object customPost(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPost
This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPostAsync
public CompletableFuture<Object> customPostAsync(@Nonnull String path) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPut
public Object customPut(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPut
public Object customPut(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeExceptionThis method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPut
public Object customPut(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPut
This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull String path, Map<String, Object> parameters, Object body, RequestOptions requestOptions) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull String path, Map<String, Object> parameters, Object body) throws AlgoliaRuntimeException(asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)parameters- Query parameters to apply to the current query. (optional)body- Parameters to send with the custom request. (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull String path, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
customPutAsync
public CompletableFuture<Object> customPutAsync(@Nonnull String path) throws AlgoliaRuntimeException (asynchronously) This method allow you to send requests to the Algolia REST API.- Parameters:
path- Path of the endpoint, anything after \"/1\" must be specified. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
deleteRecommendRule
public DeletedAtResponse deleteRecommendRule(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
deleteRecommendRule
public DeletedAtResponse deleteRecommendRule(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID) throws AlgoliaRuntimeException Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
deleteRecommendRuleAsync
public CompletableFuture<DeletedAtResponse> deleteRecommendRuleAsync(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
deleteRecommendRuleAsync
public CompletableFuture<DeletedAtResponse> deleteRecommendRuleAsync(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID) throws AlgoliaRuntimeException (asynchronously) Delete a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendRule
public RuleResponse getRecommendRule(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendRule
public RuleResponse getRecommendRule(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID) throws AlgoliaRuntimeException Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendRuleAsync
public CompletableFuture<RuleResponse> getRecommendRuleAsync(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendRuleAsync
public CompletableFuture<RuleResponse> getRecommendRuleAsync(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull String objectID) throws AlgoliaRuntimeException (asynchronously) Return a [Recommend rule](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)objectID- Unique record (object) identifier. (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendStatus
public GetRecommendTaskResponse getRecommendStatus(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull Long taskID, RequestOptions requestOptions) throws AlgoliaRuntimeException Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)taskID- Unique identifier of a task. Numeric value (up to 64bits). (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendStatus
public GetRecommendTaskResponse getRecommendStatus(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull Long taskID) throws AlgoliaRuntimeException Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)taskID- Unique identifier of a task. Numeric value (up to 64bits). (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendStatusAsync
public CompletableFuture<GetRecommendTaskResponse> getRecommendStatusAsync(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull Long taskID, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)taskID- Unique identifier of a task. Numeric value (up to 64bits). (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendStatusAsync
public CompletableFuture<GetRecommendTaskResponse> getRecommendStatusAsync(@Nonnull String indexName, @Nonnull RecommendModels model, @Nonnull Long taskID) throws AlgoliaRuntimeException (asynchronously) Some operations, such as deleting a Recommend rule, will respond with a `taskID` value. Use this value here to check the status of that task.- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)taskID- Unique identifier of a task. Numeric value (up to 64bits). (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendations
public GetRecommendationsResponse getRecommendations(@Nonnull GetRecommendationsParams getRecommendationsParams, RequestOptions requestOptions) throws AlgoliaRuntimeException Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).- Parameters:
getRecommendationsParams- (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendations
public GetRecommendationsResponse getRecommendations(@Nonnull GetRecommendationsParams getRecommendationsParams) throws AlgoliaRuntimeException Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).- Parameters:
getRecommendationsParams- (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendationsAsync
public CompletableFuture<GetRecommendationsResponse> getRecommendationsAsync(@Nonnull GetRecommendationsParams getRecommendationsParams, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).- Parameters:
getRecommendationsParams- (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
getRecommendationsAsync
public CompletableFuture<GetRecommendationsResponse> getRecommendationsAsync(@Nonnull GetRecommendationsParams getRecommendationsParams) throws AlgoliaRuntimeException (asynchronously) Returns results from either recommendation or trending models: - **Recommendations** are provided by the [Related Products](https://www.algolia.com/doc/guides/algolia-recommend/overview/#related-products-and-related-content) and [Frequently Bought Together](https://www.algolia.com/doc/guides/algolia-recommend/overview/#frequently-bought-together) models - **Trending** models are [Trending Items and Trending Facet Values](https://www.algolia.com/doc/guides/algolia-recommend/overview/#trending-items-and-trending-facet-values).- Parameters:
getRecommendationsParams- (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRules
public SearchRecommendRulesResponse searchRecommendRules(@Nonnull String indexName, @Nonnull RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams, RequestOptions requestOptions) throws AlgoliaRuntimeException List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)searchRecommendRulesParams- (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRules
public SearchRecommendRulesResponse searchRecommendRules(@Nonnull String indexName, @Nonnull RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams) throws AlgoliaRuntimeException List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)searchRecommendRulesParams- (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRules
public SearchRecommendRulesResponse searchRecommendRules(@Nonnull String indexName, @Nonnull RecommendModels model, RequestOptions requestOptions) throws AlgoliaRuntimeException List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRules
public SearchRecommendRulesResponse searchRecommendRules(@Nonnull String indexName, @Nonnull RecommendModels model) throws AlgoliaRuntimeException List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRulesAsync
public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(@Nonnull String indexName, @Nonnull RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)searchRecommendRulesParams- (optional)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRulesAsync
public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(@Nonnull String indexName, @Nonnull RecommendModels model, SearchRecommendRulesParams searchRecommendRulesParams) throws AlgoliaRuntimeException (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)searchRecommendRulesParams- (optional)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRulesAsync
public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(@Nonnull String indexName, @Nonnull RecommendModels model, RequestOptions requestOptions) throws AlgoliaRuntimeException (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)requestOptions- The requestOptions to send along with the query, they will be merged with the transporter requestOptions.- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-
searchRecommendRulesAsync
public CompletableFuture<SearchRecommendRulesResponse> searchRecommendRulesAsync(@Nonnull String indexName, @Nonnull RecommendModels model) throws AlgoliaRuntimeException (asynchronously) List [Recommend rules](https://www.algolia.com/doc/guides/algolia-recommend/how-to/rules/).- Parameters:
indexName- Index on which to perform the request. (required)model- [Recommend models](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)- Throws:
AlgoliaRuntimeException- If it fails to process the API call
-