younifyd
Menu

Search Multiple Indexes

Search several indexes at once, such as products and content, and get results grouped by index or blended into one list

Use it in a workflow

  1. Add a step and choose the Search connector.
  2. Pick the Search Multiple Indexes action (under database).
  3. Fill in the fields below, then reference the result from later steps as {{searchMultipleIndexes.response.data}}.

Fields

querystring

What to look for, in plain language. The same text is used for every index.

sourcesstringrequired

JSON list of the indexes to search, by slug, like [{"index":"products"},{"index":"content","weight":0.6,"limit":5}]. Up to 5. Weight (default 1) only matters when blending.

blendboolean

Also return a single ranked list that mixes results from every index.

limitstring

Results per index (and in the blended list). Default 10, up to 50. A source's own limit wins.

segmentstring

The pricing segment for indexes that have segments, like uk or eu.

segmentAttributesstring

Instead of Segment: a JSON object like {"country":"GB"} that picks the matching segment.

sessionIdstring

An anonymous visitor or session id, used to keep a visitor in the same experiment variant.

accessTokensstring

Comma-separated groups the visitor belongs to. Documents restricted to other groups are hidden.

debugboolean

Return how each result was scored, for tuning.

Examples

Products and help content

Searches the product and content indexes together, with content ranked lower in the blended list

json
{
  "query": "waterproof boots care",
  "sources": "[{\"index\":\"products\"},{\"index\":\"content\",\"weight\":0.6,\"limit\":5}]",
  "blend": true,
  "segment": "uk"
}

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

Was this page helpful?
Search Multiple Indexes — Search — Documentation