How to boost some particular words in lucene index?
For e.g. I have a list of items:
"lucene in action"
"solr in action"
"solr in action book"
"building search applications"
"building search applications book"
I consider the word "book" as not important and would like to down vote it. I would not like to use filter to remove the word completely from search results as it is still might be useful. Some book might have a word book in it's name (for e.g. "book of mormon").
Currently, I use
new StandardAnalyzer(version)
and store fields as
new TextField("name", name, Field.Store.YES)
Ideally, I would like to have a dictionary with a list of terms to boost and to provide it to lucene. I know that I can boost on search if I break the request to terms (like "lucene" AND "book"^0.5), but it's not what I want.