lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4368) make sentinel object in HitQueue a singleton?
Date Sun, 09 Sep 2012 11:53:07 GMT


Uwe Schindler commented on LUCENE-4368:

TopDocs collecting only works fast with muuuuuuch smaller topdocs count (10 or 20 or 100,
not 100,0000!!!). With so many hits you can only write your own collector to get all, otherwise
you burn your cpus for no reason.
> make sentinel object in HitQueue a singleton?
> ---------------------------------------------
>                 Key: LUCENE-4368
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 4.0-BETA
>            Reporter: Steven Bethard
>            Assignee: Uwe Schindler
> Via jvisualvm, I see that one of my Lucene processes is spending a lot of time in HitQueue.getSentinelObject.
That's a very simple method that currently looks like:
>   protected ScoreDoc getSentinelObject() {
>     return new ScoreDoc(Integer.MAX_VALUE, Float.NEGATIVE_INFINITY);
>   }
> Since the same sentinel is always returned, perhaps the sentinel should be declared as
a static variable on HitQueue and then getSentinelObject() would just return that static value?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message