here you can play with boost
(+includes:(red frogs) -excludes:(red frogs))^2.0 excludes:(red frogs)^0.5
you can also play with numbers to achieve best results.
this is first solution I've thought about(I mean there may be more efficient
solutions)
regards,
Volodymyr Bychkoviak
Ryan Skow w
That works very well - thank you for your quick reply. As a followup
question, what if the desired effect was to force hits containing terms in
the 'excludes' field to appear below other hits?
Example using the same setup as before:
Query: red frogs
Result: both documents would be returned, b
string query should look like: "+includes:(red frogs) -excludes:(red frogs)"
You can play with MultiFieldQueryParser a bit.
regards,
Volodymyr Bychkoviak
Ryan Skow wrote:
Here is the logical structure of the document I'm working with:
The 'Document' has two fields:
'includes' - List of te