search
Find and retrieve documents from a Meilisearch index using customizable search parameters like filtering, sorting, and highlighting specific attributes.
Instructions
Search for documents in a Meilisearch index
Input Schema
Name | Required | Description | Default |
---|---|---|---|
attributesToCrop | No | Attributes to crop | |
attributesToHighlight | No | Attributes to highlight | |
attributesToRetrieve | No | Attributes to include in results | |
cropLength | No | Length at which to crop cropped attributes | |
facets | No | Facets to return | |
filter | No | Filter query to apply | |
highlightPostTag | No | Tag to insert after highlighted text | |
highlightPreTag | No | Tag to insert before highlighted text | |
indexUid | Yes | Unique identifier of the index | |
limit | No | Maximum number of results to return (default: 20) | |
matchingStrategy | No | Matching strategy: 'all' or 'last' | |
offset | No | Number of results to skip (default: 0) | |
q | Yes | Search query | |
showMatchesPosition | No | Whether to include match positions in results | |
sort | No | Attributes to sort by, e.g. ["price:asc"] |