You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alexandre Rafalovitch (Jira)" <ji...@apache.org> on 2020/08/29 20:01:00 UTC

[jira] [Resolved] (SOLR-10012) DIH's XPath processor works incorrectly for overlapping XPath paths defined as different fields

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

Alexandre Rafalovitch resolved SOLR-10012.
------------------------------------------
    Resolution: Won't Fix

> DIH's XPath processor works incorrectly for overlapping XPath paths defined as different fields
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-10012
>                 URL: https://issues.apache.org/jira/browse/SOLR-10012
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Dawid Weiss
>            Priority: Minor
>         Attachments: SOLR-10012.patch
>
>
> Reported by a friend --
> {code}
> <dataConfig>
> ...
>           <field column="Address"           xpath="/records/fullrecord_metadata/addresses/address_name/address_spec/full_address" />
>           <field column="AddressALL"     xpath="/records/fullrecord_metadata/addresses flatten="true" />
> ...
> </dataConfig>
> {code}
> This definition doesn't seem to be importing anything in {{Address}} field -- everything is consumed by AddressALL.
> I looked briefly at the implementation of {{XPathRecordReader}} and it seems it's greedy with respect to flattened tree nodes, assuming no other field extracts data from subnodes. 
> I think this is a bug (or is it by design)?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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