Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Lucene, mail # user - Reusing a CachingWrapperFilter


+
Konstantyn Smirnov 2011-07-25, 09:07
+
Uwe Schindler 2011-07-25, 09:59
+
Konstantyn Smirnov 2011-07-25, 14:16
+
Uwe Schindler 2011-07-25, 14:30
Copy link to this message
-
RE: Reusing a CachingWrapperFilter
Konstantyn Smirnov 2011-07-29, 14:08
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.

---------------------------------------------------------------------
+
Ian Lea 2011-08-01, 12:53