Re: How to construct a ConstantScoreQuery with FixedBitSet

2018-04-23 Thread Shahak Nagiel
UNSUBSCRIBE On Monday, April 23, 2018, 9:59:24 AM EDT, Adrien Grand wrote: Creating a ConstantScoreQuery from a FixedBitSet feels wrong since queries are supposed to be independent from an index, while the FixedBitSet needs to depend on a particular index (eg. I assume that the length o

Re: How to construct a ConstantScoreQuery with FixedBitSet

2018-04-23 Thread Adrien Grand
Creating a ConstantScoreQuery from a FixedBitSet feels wrong since queries are supposed to be independent from an index, while the FixedBitSet needs to depend on a particular index (eg. I assume that the length of the bit set is your reader's maxDoc). Maybe you need to write a query that ends up bu

How to construct a ConstantScoreQuery with FixedBitSet

2018-04-23 Thread Yonghui Zhao
In my project I implement a NullFieldFilter, which will filter the docs index some field regardless the value. The implementation is traverse the index field use TermsEnum and PostingsEnum, or using DocValues advance function to traverse the docs which have this field. In this way I get FixedBitSe