Skip to main content

DX Engine for Algolia

The Algolia - Search Component Type invokes the client.multipleQueries() method in Algolia’s JavaScript SDK to search across one or more indices and/or facets with a single method call.

Before using the Algolia - Search Component Type, create and configure an Algolia Connection.

To create the Algolia Connection, in the DX Studio UI:

  1. In the top navigation, click Settings, and then click Connections. The Manage Connections page appears.
  2. Click Add Connection. The Create Connection wizard appears.
  3. For Connection Code, enter a unique identifier for the Algolia Connection.
  4. For Connection Name, enter a friendly name for the Algolia Connection.
  5. Optionally, enter a Connection Description.
  6. For Connector, select Algolia.
  7. For API Key, enter your Algolia API key. You may choose to create a Secret to store this value.
  1. For Application ID, enter your Algolia application ID.
  2. Click Submit.

To create an Algolia - Search Component, in the DX Studio UI:

  1. In the top navigation, click Manage Experiences, and then click Components. The Manage Components page appears.
  2. Click Add Component. The Create Component wizard appears.
  3. For Component Code, enter a unique identifier for the Algolia - Search Component.
  4. For Component Name, enter a friendly name for the Algolia - Search Component.
  5. Optionally, enter a Component Description.
  6. Select the No Rules checkbox.
  7. For Component Type, select Algolia - Search.
  8. Click Submit.

To configure the Algolia - Search Component, in the Manage Components page:

  1. Next to the Algolia - Search Component, click the Edit button. The Edit Component wizard appears.
  2. For Connection, select the Algolia Connection created previously.
  3. Enter values according to the following tables.
  4. Click Submit.
Parameter NameParameter PropertyDescription
StrategystrategyThe strategy for the query. See: https://www.algolia.com/doc/api-reference/api-methods/multiple-queries/?client=javascript#method-param-strategy
requestOptionsrequestOptionsRequest options for the query. See: https://www.algolia.com/doc/api-reference/api-methods/multiple-queries/?client=javascript#method-param-requestoptions

Within the Algolia - Search Component definition, you can configure multiple queries to process concurrently. See: https://www.algolia.com/doc/api-reference/api-methods/multiple-queries/?client=javascript#method-param-query-object

For each query, enter the following values.

Parameter NameParameter PropertyDescription
Index NameindexNameThe name of the Algolia index.
TypetypeThe type of the query. See: https://www.algolia.com/doc/api-reference/api-methods/multiple-queries/?client=javascript#method-param-type
QueryqueryThe value for which to query. You may use a Context Field to pass this value through the orchestration flow to this Algolia - Search Component. See: Context
paramsparamsAlgolia search parameters. See: https://www.algolia.com/doc/api-reference/api-methods/multiple-queries/?client=javascript#method-param-query-object