Skip to content

Commit ab5d14d

Browse files
authored
Update 03-ELSER.ipynb: Fix wrong lookup (#65)
Fix lookup of field that failed because https://raw.githubusercontent.com/elastic/elasticsearch-labs/main/notebooks/search/movies.json does not contain `text` but only the `field` plot
1 parent 9970e4d commit ab5d14d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/search/03-ELSER.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@
427427
" doc_id = hit['_id']\n",
428428
" score = hit['_score']\n",
429429
" title = hit['_source']['title']\n",
430-
" text = hit['_source']['text']\n",
431-
" print(f\"Score: {score}\\nTitle: {title}\\nPlot: {text}\\n\")"
430+
" plot = hit['_source']['plot']\n",
431+
" print(f\"Score: {score}\\nTitle: {title}\\nPlot: {plot}\\n\")"
432432
]
433433
}
434434
],

0 commit comments

Comments
 (0)