I posted this http://stackoverflow.com/questions/43918945/elasticsearch-score-based-on-found-keywords a few days ago on stackoverflow but without any response.
I hope someone here could help or point me in the right direction.
Thanks in advance!
you would want to use a multi match query for this.
Hint: you will need most_fields and the operator AND
The scoring will not be exactly as your sample calculations, but you should still get similar results.
If you want to understand why, consider reading these and the following chapters of the definitive guide:
Let me know if that is enough information to help you out
Hi Jesse, Luca,
you should also be able to use boosting to produce the difference in "weight" of the title vs content field, so that a hit in the title field will count more than a hit in the content field.
This should also work well together with the suggestion above!
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.