lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martijn van Groningen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-5225) ToParentBlockJoinQuery don't accumulate the child doc ids and scores if ToParentBlockJoinCollector is not used
Date Tue, 17 Sep 2013 23:03:51 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-5225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martijn van Groningen updated LUCENE-5225:
------------------------------------------

    Attachment: LUCENE-5225.patch

Added boolean option to ToParentBlockJoinQuery that controls whether the two arrays are being
used. 

Not really happy with this approach... too many if statements, perhaps there should be a dedicated
ToParentBlockJoinQuery impl for ToParentBlockJoinCollector.
                
> ToParentBlockJoinQuery don't accumulate the child doc ids and scores if ToParentBlockJoinCollector
is not used
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-5225
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5225
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Martijn van Groningen
>            Assignee: Martijn van Groningen
>            Priority: Minor
>         Attachments: LUCENE-5225.patch
>
>
> The BlockJoinScorer temporarily saves the child docids and scores in two arrays (pendingChildDocs/pendingChildScores)
for the current block (parent/child docs) being processed. This is only need for ToParentBlockJoinCollector
and in the case that this collector isn't used then these two arrays shouldn't be used as
well.
> I've seen cases where only the ToParentBlockJoinQuery is used and there are many child
docs (100k and up), in that case these two arrays are a waste of resources.

--
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: http://www.atlassian.com/software/jira

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


Mime
View raw message