-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] Update ES|QL search tutorial for 9.2 #138234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[DOCS] Update ES|QL search tutorial for 9.2 #138234
Conversation
- Add FORK/FUSE hybrid search with RRF - Add RERANK for semantic reranking - Add COMPLETION for LLM text generation - Add KNN/TEXT_EMBEDDING for vector search - Reorganize steps for better logical flow (FTS → filtering → combining → AI) - Fix QSTR, RERANK, COMPLETION syntax - Use approach-based tabs for hybrid search (OR vs FORK/FUSE) - Add callout annotations with numbered list explanations - Update title to 'ES|QL for search tutorial'
🔍 Preview links for changed docs |
This comment was marked as outdated.
This comment was marked as outdated.
ioanatia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! left a few comments
| | WHERE description:"vegetarian recipes" <1> | ||
| | SORT _score DESC | ||
| | LIMIT 100 <2> | ||
| | RERANK "healthy quick meals" ON description WITH { "inference_id": "my_reranker_model" } <3> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove WITH { "inference_id": "my_reranker_model" } to simplify the example - and we can say in the explanation that we use the default rerank model that we have available (e.g. Elastic rerank).
we can also mention that you can configure RERANK to work with another model, by pointing the user to the RERANK docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect, makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it's such a compact operator that it's hard to inline it nicely, I might wrap it in quotes just so it stands out better :) |
|
Pinging @elastic/core-docs (Team:Docs) |
|
@ioanatia thanks for the review, I've addressed all your suggestions |


Closes elastic/docs-content#3250
Note
It's probably easier to review this by running through the URL preview, rather than inspecting the diff, because the flow has changed significantly. :)
The goal of this tutorial is mainly to pull together the capabilities mentioned on the ESQL for search overview page into concrete examples. It's not a realistic use case tutorial, it's more about demonstrating functionalities. But in the future we could consider chunking this into more targeted tutorials and using less toylike data sets. That's a discussion for a follow-up.
Check out the URL preview
Summary