Is it possible to determine that specific terms are more important than others when creating an index (and not when querying it)?
Consider, for example, the synonym filter:
doc 1: "it's a good car"
doc 2: "it's a good car"
I want to add the term “vehicle” to the first document and the term “car” to the second document, but I want that if later an index is requested with the word car, then the first document will be typed above the second, and if requested for the vehicle , it will be the other way around.
Will calling setBoost in the fields do the trick before adding them to the relevant documents?
Or maybe I should add synonyms to another field name?
Or am I looking at it from the wrong point of view?
thanks
source share