Perform a search
Send a search request to your index with theq parameter:
Understanding the response
| Field | Description |
|---|---|
hits | Array of matching documents, ordered by relevance |
query | The search query you sent |
processingTimeMs | How long the search took in milliseconds |
limit | Maximum number of results returned (default: 20) |
offset | Number of results skipped (for pagination) |
estimatedTotalHits | Estimated total number of matching documents |
Search with typos
Meilisearch handles typos automatically. A search for “galxy” or “galaxi” still returns results for “galaxy”:Search with multiple words
When you search with multiple words, Meilisearch finds documents containing any of those words and ranks them by how many words match:Limit and paginate results
Control how many results you get back withlimit and offset:
Next steps
Highlight results
Show users where their query matched in each result
Phrase search
Search for exact phrases with quotes
Add filters
Narrow results with filters and sorting
Relevancy
Understand and customize how results are ranked