Skip to content

Commit 99a5fd9

Browse files
authored
Change json responses in readme (#820)
* Change json responses in readme * Update README.md
1 parent b49f5d1 commit 99a5fd9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ Output:
167167
"hits": [
168168
{
169169
"book_id": 4,
170-
"title": "Harry Potter and the Half-Blood Prince"
170+
"title": "Harry Potter and the Half-Blood Prince",
171+
"genres": ["fantasy"]
171172
}
172173
],
173174
"offset": 0,
@@ -199,9 +200,11 @@ await index.search(
199200
{
200201
"book_id": 456,
201202
"title": "Le Petit Prince",
203+
"genres": ["poetic"],
202204
"_formatted": {
203205
"book_id": 456,
204-
"title": "Le Petit <em>Prince</em>"
206+
"title": "Le Petit <em>Prince</em>",
207+
"genres": ["poetic"]
205208
}
206209
}
207210
],
@@ -234,12 +237,12 @@ await index.search(
234237
{
235238
"id": 4,
236239
"title": "Harry Potter and the Half-Blood Prince",
237-
"genres": "fantasy"
240+
"genres": ["fantasy"]
238241
},
239242
{
240243
"id": 42,
241244
"title": "The Hitchhiker's Guide to the Galaxy",
242-
"genres": "fantasy"
245+
"genres": ["fantasy"]
243246
}
244247
],
245248
"offset": 0,

0 commit comments

Comments
 (0)