Skip to content

Commit 3f67eb5

Browse files
committed
Update README.md
1 parent 5595790 commit 3f67eb5

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ client = meilisearch.Client('http://127.0.0.1:7700', 'masterKey')
7575
index = client.index('movies')
7676

7777
documents = [
78-
{ "id": 1, "title": "Carol", "genres": ["Romance", "Drama"] },
79-
{ "id": 2, "title": "Wonder Woman", "genres": ["Action", "Adventure"] },
80-
{ "id": 3, "title": "Life of Pi", "genres": ["Adventure", "Drama"] },
81-
{ "id": 4, "title": "Mad Max: Fury Road", "genres": ["Adventure", "Science Fiction"] },
82-
{ "id": 5, "title": "Moana", "genres": ["Fantasy", "Action"]},
83-
{ "id": 6, "title": "Philadelphia", "genres": ["Drama"] },
78+
{ 'id': 1, 'title': 'Carol', 'genres': ['Romance', 'Drama'] },
79+
{ 'id': 2, 'title': 'Wonder Woman', 'genres': ['Action', 'Adventure'] },
80+
{ 'id': 3, 'title': 'Life of Pi', 'genres': ['Adventure', 'Drama'] },
81+
{ 'id': 4, 'title': 'Mad Max: Fury Road', 'genres': ['Adventure', 'Science Fiction'] },
82+
{ 'id': 5, 'title': 'Moana', 'genres': ['Fantasy', 'Action']},
83+
{ 'id': 6, 'title': 'Philadelphia', 'genres': ['Drama'] },
8484
]
8585

8686
# If the index 'movies' does not exist, MeiliSearch creates it when you first add the documents.
@@ -100,17 +100,17 @@ Output:
100100

101101
```json
102102
{
103-
"hits": [
103+
'hits': [
104104
{
105-
"id": 1,
106-
"title": "Carol",
107-
"genre": ["Romance", "Drama"]
105+
'id': 1,
106+
'title': 'Carol',
107+
'genre': ['Romance', 'Drama']
108108
}
109109
],
110-
"offset": 0,
111-
"limit": 20,
112-
"processingTimeMs": 1,
113-
"query": "caorl"
110+
'offset': 0,
111+
'limit': 20,
112+
'processingTimeMs': 1,
113+
'query': 'caorl'
114114
}
115115
```
116116

@@ -131,21 +131,21 @@ JSON output:
131131

132132
```json
133133
{
134-
"hits": [
134+
'hits': [
135135
{
136-
"id": 6,
137-
"title": "Philadelphia",
138-
"_formatted": {
139-
"id": 6,
140-
"title": "<em>Phil</em>adelphia",
141-
"genre": ["Drama"]
136+
'id': 6,
137+
'title': 'Philadelphia',
138+
'_formatted': {
139+
'id': 6,
140+
'title': '<em>Phil</em>adelphia',
141+
'genre': ['Drama']
142142
}
143143
}
144144
],
145-
"offset": 0,
146-
"limit": 20,
147-
"processingTimeMs": 0,
148-
"query": "phil"
145+
'offset': 0,
146+
'limit': 20,
147+
'processingTimeMs': 0,
148+
'query': 'phil'
149149
}
150150
```
151151

0 commit comments

Comments
 (0)