If I define a query and filter like this:

Query q = new BooleanQuery()
// populating q

Filter filter = new CachingWrapperFilter( new QueryWrapperFilter( q ) )

given that I don't need score and I do need a cached filter to reuse it
immediately for other calculations, which way of searching would be the most
performing:

searcher.search( new MatchAllDocsQuery(), filter, max )

or 

searcher.search( new ConstantScoreQuery( q ), filter, max )

or 

something completely different?

TIA

--
View this message in context: 
http://lucene.472066.n3.nabble.com/Reusing-a-CachingWrapperFilter-tp3196928p3209688.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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

Reply via email to