You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Rob Audenaerde <ro...@gmail.com> on 2015/02/05 08:15:56 UTC
disabling all scoring?
Hi all,
I'm doing some analytics with a custom Collector on a fairly large number
of searchresults (+-100.000, all the hits that return from a query). I need
to retrieve them by a query (so using search), but I don't need any scoring
nor keeping the documents in any order.
When profiling the application, I saw that for my tests, my entire search
takes about 2.4 seconds, and BulkScorer takes 0.4 seconds. So I figured
that without scoring, I would be able to chop off 0.4 seconds (+- 17% speed
increase). That seems reasonable.
What would be the best approach to disable all the 'search-goodies' and
just pass the results as fast as possible into my Collector?
Thanks for your insights.
-Rob
Re: disabling all scoring?
Posted by Ahmet Arslan <io...@yahoo.com.INVALID>.
Hi Rob,
May be you wrap your query in a ConstantScoreQuery?
ahmet
On Thursday, February 5, 2015 9:17 AM, Rob Audenaerde <ro...@gmail.com> wrote:
Hi all,
I'm doing some analytics with a custom Collector on a fairly large number
of searchresults (+-100.000, all the hits that return from a query). I need
to retrieve them by a query (so using search), but I don't need any scoring
nor keeping the documents in any order.
When profiling the application, I saw that for my tests, my entire search
takes about 2.4 seconds, and BulkScorer takes 0.4 seconds. So I figured
that without scoring, I would be able to chop off 0.4 seconds (+- 17% speed
increase). That seems reasonable.
What would be the best approach to disable all the 'search-goodies' and
just pass the results as fast as possible into my Collector?
Thanks for your insights.
-Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org