Cloning AI Search objects to other workspaces

Before cloning AI Search objects between workspaces, we recommend reading the Introduction to cloning article.

You can clone the following AI Search objects:

  • search indexes, together with their query rules and synonyms
  • query rules
  • all synonyms of an index

When you clone an index, its settings, query rules, and synonyms are cloned to the target workspace. You can also clone a single query rule or the synonyms of an index without cloning the index itself. In that case, you select the index in the target workspace to which they are added.

The procedures for query rules and synonyms in this article describe cloning to an index that doesn't contain them yet. If the target index already contains identical query rules or the same synonyms, check them in the target index after cloning.

Prerequisites


IMPORTANT: In the target workspace, the AI Search model must be active for the item feed used by the target index. To enable it, see Configure AI engine for AI Search.

  • Make sure the item feeds in the source and target workspaces have equivalent attributes of the same type (for example, text or float).
  • To clone only query rules or synonyms, the target workspace must have an index to which you can add them.

Cloning a search index


If the target workspace doesn't have an index with the same name, cloning creates a new index. If an index with the same name exists in the target workspace, a conflict occurs and you decide whether to update that index. An existing index is detected only by its name, so to update an index in the target workspace, it must have the same name as the index you clone.

  1. Go to AI Hub AI Hub icon > Indexes.
  2. On the index you want to clone, click Three-dot icon > Clone to workspace.
  3. On the pop-up, select up to 5 workspaces to which you want to clone the index.
  4. Click Next.
  5. If an index with the same name exists in the target workspace, resolve the conflict.
  6. In the Cloning details section, map the following elements with their equivalents in the target workspace. Confirm each section with Apply:
    • Product feed: the item feed used by the index.
    • Display attributes: the item attributes selected in the index settings, such as attributes returned in the response and sortable, filterable, and facetable attributes.
    • Events: the events used in the index settings.
  7. In the upper right corner, click Clone.

An index with the same name exists in the target workspace

The definitions of indexes can't be compared, so the index has the Cannot compare status in the Objects to clone section.

  1. In the Objects to clone section, next to the target workspace name, click the downward arrow icon.
    Result: The list displays the index that also exists in the target workspace.
  2. Select one of the following options:
    • To overwrite the index in the target workspace with the index from the source workspace, click Update.
    • To skip cloning the index to the target workspace, click Don't update. This option is selected by default.
    • To create a copy of the index from the source workspace in the target workspace, click Create a copy.
  3. If applicable, repeat steps 1-2 for other workspaces.
  4. Confirm the settings by clicking Apply.

Cloning a query rule


  1. Go to AI Hub AI Hub icon > Indexes.
  2. Open the index that contains the rule.
  3. Go to the Rules section.
  4. On the rule you want to clone, click Three-dot icon > Clone to workspace.
  5. On the pop-up, select the workspace to which you want to clone the rule.
  6. Click Next.
  7. In the Cloning details section, map the following elements. Confirm each section with Apply:
    • Target search index: the index in the target workspace to which the rule is added.
    • Product feed: the item feed used by the rule.
    • Display attributes: the item attributes used in the rule.
  8. In the upper right corner, click Clone.

The cloned rule keeps its status. A draft rule is a draft in the target workspace, and an active rule is active.

If the target index already has a rule with the same name but different content, the existing rule isn't changed. Instead, a copy of the cloned rule is created, and Cloned from <index ID> is added to its name.

Cloning synonyms


All synonyms of an index are cloned together, including synonyms added manually, imported from a CSV file, and proposed by the Synonym Agent. You can't clone individual synonyms.

  1. Go to AI Hub AI Hub icon > Indexes.
  2. Open the index whose synonyms you want to clone.
  3. Under the name of the index, select the Synonyms tab.
  4. Above the list, click Clone to workspace.
  5. On the pop-up, select the workspace to which you want to clone the synonyms.
  6. Click Next.
  7. In the Cloning details section, in Target search index, select the index in the target workspace to which the synonyms are added, and click Apply.
  8. In the upper right corner, click Clone.

Cloning logs


To check whether the objects were successfully cloned, go to Settings > Cloning logs.

Canonical URL: https://hub.synerise.com/docs/settings/workspace/cloning-objects/cloning-ai-search-to-workspaces