You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/03/12 12:45:44 UTC
[jira] [Commented] (LUCENE-5520) ArrayIndexOutOfBoundException in
ToChildBlockJoinQuery when there's a deleted parent without any children
[ https://issues.apache.org/jira/browse/LUCENE-5520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13931665#comment-13931665 ]
Michael McCandless commented on LUCENE-5520:
--------------------------------------------
Unfortunately, we are not allowed to check acceptDocs with parent docIDs: that bitset is only "valid" for child documents. This is because the primary search is against children, and IndexSearcher could pass a Filter "down low" as the acceptDocs.
This also means that your app really must delete all child documents for a given parent, if you never want to see that parent; but really it's best to delete parent + all children, whenever you want to delete.
I have an idea for a possible fix ... I'll test and post a patch.
> ArrayIndexOutOfBoundException in ToChildBlockJoinQuery when there's a deleted parent without any children
> ---------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-5520
> URL: https://issues.apache.org/jira/browse/LUCENE-5520
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/join
> Affects Versions: 4.2, 4.7
> Reporter: Sally Ang
> Assignee: Michael McCandless
> Attachments: TestBlockJoin.patch, non working patch.patch, testout.txt, working patch.patch
>
>
> This problem is found in lucene 4.2.0 and reproduced in 4.7.0
> In our app when we delete a document we always delete all the children.
> But not all parents have children. The exception happen for us when the parent without children is deleted.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org