marvin at rectangular.com
Thu Nov 26 07:41:13 PST 2009
On Thu, Nov 26, 2009 at 09:00:22AM +0000, Dermot wrote:
> What the Obj::BitVector class is for?
Primarily, as part of the implementation for deletions and filtering.
> The reason I ask is that I have
> a requirement to filter searches and a bit-pattern might be a useful
> way to achieve my goal. I need to return results that are relevant but
> might exclude results if that doc was not able to be sold in the users
> country or they requested to only see docs that were available in a
> specific format.
An ANDQuery conjoining a Filter and an arbitrary Query will do the trick.
You can also just pass the excluding clause to ANDQuery directly. That can
actually be faster if the than caching the results inside a Filter if the
filter is sparse.
Check out the docs for...
> It doesn't look like BitVector is designed for this and I might want
> KS::Search::Filter or something.
Filter uses BitVector under the hood. :)
More information about the kinosearch