We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2cbda commit 34e2d4dCopy full SHA for 34e2d4d
README.md
@@ -103,15 +103,25 @@ Output:
103
All the supported options are described in [this documentation section](https://docs.meilisearch.com/guides/advanced_guides/search_parameters.html).
104
105
```python
106
-index.search('prince', { 'limit': 1 })
+index.search(
107
+ 'prince',
108
+ {
109
+ 'limit': 1,
110
+ 'attributesToHighlight': ['title']
111
+ }
112
+)
113
```
114
115
```json
116
{
117
"hits": [
118
119
"book_id": 456,
- "title": "Le Petit Prince"
120
+ "title": "Le Petit Prince",
121
+ "_formatted": {
122
+ "book_id": 456,
123
+ "title": "Le Petit <em>Prince</em>",
124
125
}
126
],
127
"offset": 0,
0 commit comments