Skip to main content
Usage
algolia compositions search <composition-id> <query> [flags]

Examples

Search a composition with a query:
algolia compositions search my-comp "running shoes"
Search with filters:
algolia compositions search my-comp "shirt" --filters "brand:Nike"
Search with pagination:
algolia compositions search my-comp "shirt" --hits-per-page 20 --page 2

Flags

--filters
Filter expression
--hits-per-page
Number of hits per page
--page
Page number

Output formatting flags

--allow-missing-template-keys
If true, ignore errors in templates due to missing fields or map keys. This only applies to golang and jsonpath output formats.
-o, --output
Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).
--template
Template string or path to a template file to use when —output=jsonpath, —output=jsonpath-file.
Last modified on May 20, 2026