File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments