Skip to content

Commit 2d8db6f

Browse files
authored
Merge pull request #286 from meilisearch/readme
Update Readme
2 parents 569395e + d403bd1 commit 2d8db6f

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ documents = [
8787
index.add_documents(documents) # => { "updateId": 0 }
8888
```
8989

90-
With the `updateId`, you can check the status (`enqueued`, `processed` or `failed`) of your documents addition using the [update endpoint](https://docs.meilisearch.com/reference/api/updates.html#get-an-update-status).
90+
With the `updateId`, you can check the status (`enqueued`, `processing`, `processed` or `failed`) of your documents addition using the [update endpoint](https://docs.meilisearch.com/reference/api/updates.html#get-an-update-status).
9191

9292
#### Basic Search <!-- omit in toc -->
9393

@@ -117,10 +117,9 @@ All the supported options are described in the [search parameters](https://docs.
117117

118118
```python
119119
index.search(
120-
'prince',
120+
'hob',
121121
{
122-
'attributesToHighlight': ['title'],
123-
'filters': 'book_id > 10'
122+
'attributesToHighlight': ['*'],
124123
}
125124
)
126125
```
@@ -131,18 +130,18 @@ JSON output:
131130
{
132131
"hits": [
133132
{
134-
"book_id": 456,
135-
"title": "Le Petit Prince",
133+
"book_id": 1344,
134+
"title": "The Hobbit",
136135
"_formatted": {
137-
"book_id": 456,
138-
"title": "Le Petit <em>Prince</em>"
136+
"book_id": 1344,
137+
"title": "The <em>Hob</em>bit"
139138
}
140139
}
141140
],
142141
"offset": 0,
143142
"limit": 20,
144-
"processingTimeMs": 10,
145-
"query": "prince"
143+
"processingTimeMs": 0,
144+
"query": "hob"
146145
}
147146
```
148147

0 commit comments

Comments
 (0)