I have a situation where I want to search for individual words in a phrase as well as the phrase itself. For example, if the user enters ["classical music"] (with quotes) I want to find documents that contain "classical music" (the phrase) *and* the individual words "classical" and "music".

Of course, I could just search for the individual words and the phrase would get found as a consequence. But I want documents containing the phrase to appear first in the search results, since the phrase is the user's primary interest.

I've constructed the following query, using boost values...

[+(content:"classical music"^5.0 content:classical^0.1 content:music^0.1)]

...but the boost values don't seem to affect the order of the search results.

Am I misunderstanding the purpose or proper usage of boosts, and if so, can someone explain (at least roughly) how to achieve the desired result?

--Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to