Re: Apply Lucene Query on Bits

2016-12-06 Thread Hendrik Dev
isible documents, >> - one from the core and deletes cache key to the number of documents in >> the index, this numDocs could be recomputed by iterating the bit set of >> visible documents, and counting how many of them are not deleted. >> >> Le dim. 4 déc. 2016 à 10:04, H

Apply Lucene Query on Bits

2016-12-04 Thread Hendrik Dev
Hi, how to apply a org.apache.lucene.search.Query on a given org.apache.lucene.util.Bits object? Background: I have a subclass of org.apache.lucene.index.FilterLeafReader where i want to filter the livedocs by applying a query on the "Bits". According to javadoc i need also to override numDocs()