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] [Commented] (LUCENE-4068) Improve IW#addDocuments(...) javadoc
Date Fri, 18 May 2012 16:57:08 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278954#comment-13278954
] 

Martijn van Groningen commented on LUCENE-4068:
-----------------------------------------------

Yes... someone could delete a parent without deleting its children. I guess that this a responsibility
of the application using Lucene. Right now for updating the deleteDocuments(query) method
should be used, before using updateDocuments(...) / addDocuments(...) 

The updateDocuments method that uses the delQuery could include a ToChildBlockJoinQuery instance
(as part of a boolean query) that would matches to the children documents (in case a parent
document were to be deleted). However this logic would then still be the apps responsibility.
                
> Improve IW#addDocuments(...) javadoc
> ------------------------------------
>
>                 Key: LUCENE-4068
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4068
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 3.2, 3.3, 3.4, 3.5, 3.6, 4.0
>            Reporter: Martijn van Groningen
>            Priority: Minor
>             Fix For: 4.0, 3.6.1
>
>         Attachments: LUCENE-4068.patch, LUCENE-4068.patch
>
>
> Improve IW#addDocuments(...) javadoc. 
> Describer how blocks can be used regarding to index updates.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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