Re: Negative Field Boost

2005-05-26 Thread Volodymyr Bychkoviak
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

Re: Negative Field Boost

2005-05-26 Thread Ryan Skow
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

Re: Negative Field Boost

2005-05-26 Thread Volodymyr Bychkoviak
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