Reputation: 848
A project I am working on utilizes elasticsearch as a search engine. I also am using a graph database to keep track of user actions and the relationships between queries, clicks, etc.
What I want to do is index queries and their top results from the graph database into elasticsearch, so at query time, I can boost the elasticsearch _score by the score provided by the graph database. Is this possible in elasticsearch itself? Or do I need to do the boosting externally?
Upvotes: 1
Views: 1714
Reputation: 186
If i understad your problem, you have your primary results comming from another source (graph DB) and that score is highly dependent of every query as it is with Elasticsearch. Script score functions in ES are not suited for this task, as you have limited parameters to pass to it besides accessing all indexed document's fields. So the only choices I can see are:
Upvotes: 2
Reputation: 254
boost the elasticsearch _score by the score
You can boost the score of the documents during elasticsearch query using the function score query.
Upvotes: 0