Boost results by yeke weights

This is a question for a possible strategic.
I use yeke to get meaningful words from
text. I want to ingest those words with the weights so that Elasticsearch could boost the doc using those weights.
for example:

doc1: 
   words: word1,word2,word4
   weights: 0.5,0.2,0.2
doc2:
  words: word1,word3,word5
  weights:0.2,0.2,0.5

Now, if I will search word1, doc1 will be rated higher

can it be done?

How are the words and weights actually stored in Elasticsearch, what is their mapping?

it could be pattern analyzer, which divide the values with the comma.

Right, but the issue is that json is never guaranteed to be ordered.

It brings me to another method, which boost by position.
https://discuss.elastic.co/t/rate-document-by-term-offset-or-location/320364

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.