younifyd
Menu

Create or update searchabilities (Deprecated)

Create or update searchabilities (Deprecated)

PATCH/v1/searchabilities

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Create or update searchabilities (Deprecated) action (under Searchabilities).
  3. Fill in the fields below, then reference the result from later steps as {{createOrUpdateSearchabilitiesDeprecated.response.data}}.

Request

Query parameters

sectionstring

The section of the index to use. Defaults to `Products`.

cstring

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

skip_rebuildboolean

Skip index rebuild.

Default false

Request body

Enter the body as JSON in the step's Body field.

searchabilitiesarray<object>required

A list of facet searchabilities configurations for create or update.

namestringrequired

Name of searchability field.

fuzzy_searchableboolean

Configure a field as fuzzy-searchable to enable typo-tolerant keyword-matching on field values in search and autocomplete. A field can be fuzzy-searchable or exact-searchable, but not both. Avoid marking very verbose fields (e.g. long descriptions) as fuzzy-searchable, since it can lead to recall of more items than is necessary and introduces complexity with ranking.

exact_searchableboolean

Configure this field for ID or ID-like values (SKU ID, ISBN, part number, etc.) to enable exact matching only, with no typo-tolerance, for search and autocomplete. Do not use for fields containing natural language words. A field can be exact-searchable or fuzzy-searchable, but not both.

facetableboolean

Specifies whether the field should be treated as a facet. When True, the metadata field must be a string, float, integer, or list of these types. Dictionaries are supported if they contain values of these types. Nested dictionaries are not supported

displayableboolean

Specifies whether the field is displayable in the response within the `results` array.

hiddenboolean

Hides the field by default in the response but makes it available to retrieve via `fmt_options[hidden_fields]` parameter.

json
{
  "searchabilities": [
    {
      "name": "string",
      "fuzzy_searchable": false,
      "exact_searchable": false,
      "facetable": false,
      "displayable": false,
      "hidden": false
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{createOrUpdateSearchabilitiesDeprecated.response.data.<field>}}.

searchabilitiesarray<object>

A list of facet searchabilities configurations.

namestringrequired

Name of searchability field.

percentage_presencenumber

Percentage of items and variations that contain this field.

fuzzy_searchablebooleanrequired

Configure a field as fuzzy-searchable to enable typo-tolerant keyword-matching on field values in search and autocomplete. A field can be fuzzy-searchable or exact-searchable, but not both. Avoid marking very verbose fields (e.g. long descriptions) as fuzzy-searchable, since it can lead to recall of more items than is necessary and introduces complexity with ranking.

facetablebooleanrequired

Specifies whether the field should be treated as a facet. When True, the metadata field must be a string, float, integer, or list of these types. Dictionaries are supported if they contain values of these types. Nested dictionaries are not supported

exact_searchablebooleanrequired

Configure this field for ID or ID-like values (SKU ID, ISBN, part number, etc.) to enable exact matching only, with no typo-tolerance, for search and autocomplete. Do not use for fields containing natural language words. A field can be exact-searchable or fuzzy-searchable, but not both.

typeany
example_itemsarray<string>

A list of items that has this searchability field.

defaultbooleanrequired

Flag that shows if this searchability config is default.

displayablebooleanrequired

Specifies whether the field is displayable in the response within the `results` array.

hiddenbooleanrequired

Hides the field by default in the response but makes it available to retrieve via `fmt_options[hidden_fields]` parameter.

created_atstring (date-time)required

Creation date and time

updated_atstring (date-time)

Last updated date and time

total_countinteger

Number of searchabilities.

json
{
  "searchabilities": [
    {
      "name": "string",
      "fuzzy_searchable": false,
      "facetable": false,
      "exact_searchable": false,
      "default": false,
      "displayable": false,
      "hidden": false,
      "created_at": "2025-01-01T00:00:00Z",
      "percentage_presence": 0,
      "type": null,
      "example_items": [
        "string"
      ],
      "updated_at": "2025-01-01T00:00:00Z"
    }
  ],
  "total_count": 0
}

Need more? See the Constructor guide for connection setup and behaviour shared by every action.