File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
packages/instant-meilisearch Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,28 @@ instantMeiliSearch(
296296 }
297297)
298298```
299+ When using multi search, meilisearchParams can be overriden for specific indexes :
299300
301+ ``` js
302+ instantMeiliSearch (
303+ // ...
304+ {
305+ meiliSearchParams: {
306+ // All indexes will highlight overview
307+ attributesToHighlight: [' overview' ],
308+ highlightPreTag: ' <em>' ,
309+ highlightPostTag: ' </em>' ,
310+ attributesToSearchOn: [' overview' ],
311+ indexesOverrides: {
312+ movies: {
313+ // Only title will be highlighted for hits in movies
314+ attributesToHighlight: [' title' ]
315+ }
316+ }
317+ },
318+ }
319+ )
320+ ```
300321### Modify Meilisearch search parameters
301322
302323` instantMeiliSearch ` returns an instance with two properties on it, one of them being ` setMeiliSearchParams ` .
You can’t perform that action at this time.
0 commit comments