Hello All,
I am trying the Elasticsearch pinned query, for that, I have some questions:
- Is there any analytics tool elasticsearch plugin or built-in functionality to find out the most searched terms?
- Is there any way to store pinned ids based on the search query in elasticsearch?
My use case scenario is I want to use pinned query as a recommendation for example:-
A bookstore that sells a series of course books
Search term: name of the book series
Pinned results: search results containing relevant books from the series
GET /book_store/_search
{
"query": {
"pinned" : {
"ids" : ["1", "4", "100"],
"organic" : {
"match":{
"book_name": "The art of living"
}
}
}
}
}
Regards,
Avinash Kumawat