[
https://issues.apache.org/jira/browse/SOLR-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luo Jing updated SOLR-2781:
---------------------------
Description:
When DocBuilder catch an exception throwed by its child entity and
skip_doc=true, the next doc may contain the front doc's data of parent entity.
method buildDocument:
if (doc == null && entity.isDocRoot) {
doc = new DocWrapper();
....
suggestion:
if (entity.isDocRoot) {
doc = new DocWrapper();
....
was:
When DocBuilder catch an exception throwed by its child entity and
skip_doc=true, the next doc may contain the front doc's data of parent entity.
method buildDocument:
if (doc == null && entity.isDocRoot) {
doc = new DocWrapper();
....
suggestion:
if ( //*doc == null/*/ && entity.isDocRoot) {
doc = new DocWrapper();
....
> One exception affect the next doc building
> ------------------------------------------
>
> Key: SOLR-2781
> URL: https://issues.apache.org/jira/browse/SOLR-2781
> Project: Solr
> Issue Type: Bug
> Components: contrib - DataImportHandler
> Affects Versions: 1.4.1, 3.1, 3.2, 3.3, 3.4
> Environment: jdk 1.6.0.16/Jboss 4.2
> Reporter: Luo Jing
> Original Estimate: 96h
> Remaining Estimate: 96h
>
> When DocBuilder catch an exception throwed by its child entity and
> skip_doc=true, the next doc may contain the front doc's data of parent entity.
> method buildDocument:
> if (doc == null && entity.isDocRoot) {
> doc = new DocWrapper();
> ....
> suggestion:
> if (entity.isDocRoot) {
> doc = new DocWrapper();
> ....
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]