Java Mailing List Archive

http://www.java2.5341.com/

Home » java-user.lucene »

How to combine filter in Lucene 2.4?

Timo Nentwig

2008-11-08

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: java-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.