lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hendrik Dev <hendrikde...@gmail.com>
Subject Apply Lucene Query on Bits
Date Sun, 04 Dec 2016 09:04:55 GMT
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() if i override
getLiveDocs(). So the question extends also to how to filter the
number of documents based on a query (within a FilterLeafReader)

Thx
Hendrik


-- 
Hendrik Saly (salyh, hendrikdev22)
@hendrikdev22
PGP: 0x22D7F6EC

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message