I'm just starting to learn about boosting in Solr, and so far I've been able to add boost queries based on some specific phrases like: bq=manufacturer:sony^2
. However, I'm now looking to apply logic to a boost and I'm not sure how to proceed.
Specifically, I already have a boost query with multiple terms like
bq = manufacturer:"sony"^2 name:"bob"^3 town:"place"^4 age:"40"^5
but I wanted to know if it was possible to add another term that is a collection of smaller terms such that if one or more match then the whole term is weighted higher for that given search result? Something like:
bq = manufacturer:"sony"^2
(name:"bob" OR town:"place" OR age:"40"
)^5
where the multi-term in parenthesis has one associated weight (5) that is only "activated" if one or more of its sub terms match.
Does something like this just belong in a bq
or is this closer to a boost function? I'm sort of confused as to what the main differences are.
Thanks for any help.