How to apply boosting in solr for keywords from txt(or config) file

87 Views Asked by At

I am new in solr world, please help me in boosting keywords.

I have a keywords.txt file with 100 words. For example:

foo^1.1 
bar^0.9
test^0.1
wings^0.9

How can I add this file to Solr? I'm looking for a way similar to synonyms.txt, stopwords.txt, protwords.txt or spellings.txt file.

For example, if I want to find all docs matching "foo" or "bar". I would like to send to Solr query

q = foo bar

q = foo^1.1 bar^0.9    # NOT WHAT I WANT
0

There are 0 best solutions below