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.