Skip to content

Commit 79b6e51

Browse files
committed
Update example for custom search with filters
1 parent ef27daf commit 79b6e51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Note that MeiliSearch will rebuild your index whenever you update `filterableAtt
170170
Then, you can perform the search:
171171

172172
```ruby
173-
index.search('road', { filter: ['id > 2 AND genres = Adventure'] })
173+
index.search('wonder', { filter: ['id > 1 AND genres = Action'] })
174174
```
175175

176176
JSON output:
@@ -179,17 +179,17 @@ JSON output:
179179
{
180180
"hits": [
181181
{
182-
"id": 4,
183-
"title": "Mad Max: Fury Road",
182+
"id": 2,
183+
"title": "Wonder Woman",
184184
"genres": [
185-
"Adventure",
186-
"Science Fiction"
185+
"Action",
186+
"Adventure"
187187
]
188188
}
189189
],
190190
"nbHits": 1,
191191
"exhaustiveNbHits": false,
192-
"query": "road",
192+
"query": "wonder",
193193
"limit": 20,
194194
"offset": 0,
195195
"processingTimeMs": 0

0 commit comments

Comments
 (0)