younifyd
Menu

Create or update searchability (Deprecated)

Create or update searchability (Deprecated)

PATCH/v1/searchabilities/{name}

Use it in a workflow

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

Request

Path parameters

namestringrequired

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.

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
{
  "fuzzy_searchable": false,
  "exact_searchable": false,
  "facetable": false,
  "displayable": false,
  "hidden": false
}

Response

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

namestring

Name of searchability field.

percentage_presencenumber

Percentage of items and variations that contain this 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.

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

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.

typeany
example_itemsarray<string>

A list of items that has this searchability field.

defaultboolean

Flag that shows if this searchability config is default.

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.

created_atstring (date-time)

Creation date and time

updated_atstring (date-time)

Last updated date and time

json
{
  "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"
}

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