java-user@lucene.apache.org
[Top] [All Lists]

How to combine filter in Lucene 2.4?

Subject: How to combine filter in Lucene 2.4?
From: Timo Nentwig
Date: Sat, 8 Nov 2008 19:06:15 +0100
Hi!

Since Filter.bits() is deprecated and replaced by getDocIdSet() now I wonder 
how I am supposed to combine (AND) filters (for facets).

I worked around this issue by extending Filter and let getDocIdSet() return an 
OpenBitSet to ensure that this implementation is used everywhere and casting 
to OpenBitSet will work but this is really not clean code.

Thanks
Timo

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: java-user-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>