0

Question is similar to Elasticsearch token position relevance to scoring? (this question is old and there is no answer), also I need to define own boost value for each token by position.

For example, I have 2 documents

{
  "f": "orange apple tomato"
},
{
  "f": "apple orage tomato"
}

And I want to score these values like f[0]^300, f[1]^150, f[2]^75

and if I search apple first document should have score 300, and second 150.

Nazar Kalytiuk
  • 1,499
  • 1
  • 11
  • 21

1 Answers1

1

You are looking for Scoring by term position in ElasticSearch Check this one

enter image description here

Scoring by term position in ElasticSearch?

Musab Dogan
  • 1,811
  • 1
  • 6
  • 8