John
John

Reputation: 3115

Elastic Search: Boosting results

I have many objects that have been indexed in ES. Two of each object's properties is "type" and "title". Is there any way to boost results so that if a certain type in the result set is the majority, the title is weighs much more than the other properties such as "description"?

Edit: I am already boosting certain properties. But I want, given a certain characteristic of the result set(most types are the similar), to further boost another field.

Upvotes: 0

Views: 602

Answers (1)

Udy
Udy

Reputation: 2542

you can add boosting to your query:

for example:

"term": {
        "terms": {
          "value": "stranger then fiction",
          "boost": 1.8
        }

read more here: http://www.elasticsearch.org/guide/reference/mapping/boost-field/

Upvotes: 0

Related Questions