RecommendClient

algoliasearch.api.RecommendClient
See theRecommendClient companion object
class RecommendClient(appId: String, apiKey: String, clientOptions: ClientOptions) extends ApiClient

Attributes

Companion
object
Graph
Supertypes
class ApiClient
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def batchRecommendRules(indexName: String, model: RecommendModels, recommendRule: Option[Seq[RecommendRule]], requestOptions: Option[RequestOptions])(implicit ec: ExecutionContext): Future[RecommendUpdatedAtResponse]

Create or update a batch of Recommend Rules Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same objectID already exists. You may also specify true for clearExistingRules, in which case the batch will atomically replace all the existing Recommend Rules. Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a source item instead of a query. The main differences are the following: - Conditions pattern and anchoring are unavailable. - Condition filters triggers if the source item matches the specified filters. - Condition filters accepts numeric filters. - Consequence params only covers filtering parameters. - Consequence automaticFacetFilters doesn't require a facet value placeholder (it tries to match the data source item's attributes instead).

Create or update a batch of Recommend Rules Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same objectID already exists. You may also specify true for clearExistingRules, in which case the batch will atomically replace all the existing Recommend Rules. Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a source item instead of a query. The main differences are the following: - Conditions pattern and anchoring are unavailable. - Condition filters triggers if the source item matches the specified filters. - Condition filters accepts numeric filters. - Consequence params only covers filtering parameters. - Consequence automaticFacetFilters doesn't require a facet value placeholder (it tries to match the data source item's attributes instead).

Required API Key ACLs:

  • editSettings

Value parameters

indexName

Name of the index on which to perform the operation.

model

Recommend model.

Attributes

def customDelete[T : Manifest](path: String, parameters: Option[Map[String, Any]], requestOptions: Option[RequestOptions])(implicit evidence$1: Manifest[T], ec: ExecutionContext): Future[T]

This method allow you to send requests to the Algolia REST API.

This method allow you to send requests to the Algolia REST API.

Value parameters

parameters

Query parameters to apply to the current query.

path

Path of the endpoint, anything after "/1" must be specified.

Attributes

def customGet[T : Manifest](path: String, parameters: Option[Map[String, Any]], requestOptions: Option[RequestOptions])(implicit evidence$1: Manifest[T], ec: ExecutionContext): Future[T]

This method allow you to send requests to the Algolia REST API.

This method allow you to send requests to the Algolia REST API.

Value parameters

parameters

Query parameters to apply to the current query.

path

Path of the endpoint, anything after "/1" must be specified.

Attributes

def customPost[T : Manifest](path: String, parameters: Option[Map[String, Any]], body: Option[Any], requestOptions: Option[RequestOptions])(implicit evidence$1: Manifest[T], ec: ExecutionContext): Future[T]

This method allow you to send requests to the Algolia REST API.

This method allow you to send requests to the Algolia REST API.

Value parameters

body

Parameters to send with the custom request.

parameters

Query parameters to apply to the current query.

path

Path of the endpoint, anything after "/1" must be specified.

Attributes

def customPut[T : Manifest](path: String, parameters: Option[Map[String, Any]], body: Option[Any], requestOptions: Option[RequestOptions])(implicit evidence$1: Manifest[T], ec: ExecutionContext): Future[T]

This method allow you to send requests to the Algolia REST API.

This method allow you to send requests to the Algolia REST API.

Value parameters

body

Parameters to send with the custom request.

parameters

Query parameters to apply to the current query.

path

Path of the endpoint, anything after "/1" must be specified.

Attributes

def deleteRecommendRule(indexName: String, model: RecommendModels, objectID: String, requestOptions: Option[RequestOptions])(implicit ec: ExecutionContext): Future[DeletedAtResponse]

Deletes a Recommend rule from a recommendation scenario.

Deletes a Recommend rule from a recommendation scenario.

Required API Key ACLs:

  • editSettings

Value parameters

indexName

Name of the index on which to perform the operation.

model

Recommend model.

objectID

Unique record identifier.

Attributes

def getRecommendRule(indexName: String, model: RecommendModels, objectID: String, requestOptions: Option[RequestOptions])(implicit ec: ExecutionContext): Future[RecommendRule]

Retrieves a Recommend rule that you previously created in the Algolia dashboard.

Retrieves a Recommend rule that you previously created in the Algolia dashboard.

Required API Key ACLs:

  • settings

Value parameters

indexName

Name of the index on which to perform the operation.

model

Recommend model.

objectID

Unique record identifier.

Attributes

def getRecommendStatus(indexName: String, model: RecommendModels, taskID: Long, requestOptions: Option[RequestOptions])(implicit ec: ExecutionContext): Future[GetRecommendTaskResponse]

Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.

Checks the status of a given task. Deleting a Recommend rule is asynchronous. When you delete a rule, a task is created on a queue and completed depending on the load on the server. The API response includes a task ID that you can use to check the status.

Required API Key ACLs:

  • editSettings

Value parameters

indexName

Name of the index on which to perform the operation.

model

Recommend model.

taskID

Unique task identifier.

Attributes

def getRecommendations(getRecommendationsParams: GetRecommendationsParams, requestOptions: Option[RequestOptions])(implicit ec: ExecutionContext): Future[GetRecommendationsResponse]

Retrieves recommendations from selected AI models.

Retrieves recommendations from selected AI models.

Required API Key ACLs:

  • search

Attributes

def searchRecommendRules(indexName: String, model: RecommendModels, searchRecommendRulesParams: Option[SearchRecommendRulesParams], requestOptions: Option[RequestOptions])(implicit ec: ExecutionContext): Future[SearchRecommendRulesResponse]

Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.

Searches for Recommend rules. Use an empty query to list all rules for this recommendation scenario.

Required API Key ACLs:

  • settings

Value parameters

indexName

Name of the index on which to perform the operation.

model

Recommend model.

Attributes

Inherited methods

override def close(): Unit

Attributes

Definition Classes
ApiClient -> AutoCloseable
Inherited from:
ApiClient
def setClientApiKey(apiKey: String): Unit

Attributes

Inherited from:
ApiClient