RE: BooleanFilter vs BooleanQuery performance

2013-12-16 Thread Uwe Schindler
Hi, The problem with BooleanFilter is its implementation: It creates BitSets and AND/ORs them together. The BitSets are created, because you can cache them for later use (the main use-case for filters). In contrast, a query intersect the DocIdSetIterators directly. The good thing with this: If y

Re: BooleanFilter vs BooleanQuery performance

2013-12-16 Thread Christoph Kaser
Hi, thank you for your explanation! I used a wrapped BooleanQuery instead, this turned out to be a lot faster. Christoph Am 16.12.2013 15:19, schrieb Uwe Schindler: Hi, The problem with BooleanFilter is its implementation: It creates BitSets and AND/ORs them together. The BitSets are created,