[ https://issues.apache.org/jira/browse/SOLR-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759211#action_12759211 ]
Fergus McMenemie commented on SOLR-1437: ---------------------------------------- Still trying to understand all the ins and outs of the code! Around line 250 in XPathRecordReader.java we have the following expression "recordStarted && !isRecord". Why is this done? Why do we want to call putText() with a null value? Why do we only call putText Nodes where isRecord is false? {code} try { if (attributes != null) { for (Node node : attributes) { String value = parser.getAttributeValue(null, node.name); if (value != null || (recordStarted && !isRecord)) { putText(values, value, node.fieldName, node.multiValued); valuesAddedinThisFrame.add(node.fieldName); } } } {code} > DIH: Enhance XPathRecordReader to deal with //tagname and other improvments. > ---------------------------------------------------------------------------- > > Key: SOLR-1437 > URL: https://issues.apache.org/jira/browse/SOLR-1437 > Project: Solr > Issue Type: Improvement > Components: contrib - DataImportHandler > Affects Versions: 1.4 > Reporter: Fergus McMenemie > Assignee: Noble Paul > Priority: Minor > Fix For: 1.5 > > Attachments: SOLR-1437.patch, SOLR-1437.patch > > Original Estimate: 672h > Remaining Estimate: 672h > > As per > http://www.nabble.com/Re%3A-Extract-info-from-parent-node-during-data-import-%28redirect%3A%29-td25471162.html > it would be nice to be able to use expressions such as //tagname when > parsing XML documents. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.