Jan Mach created SOLR-5803:
------------------------------

             Summary: flatten="false" not working for XPathEntityProcessor
                 Key: SOLR-5803
                 URL: https://issues.apache.org/jira/browse/SOLR-5803
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 4.6
            Reporter: Jan Mach


I would like to get nested entities under the tag dc:contributor
        <dc:contributor>
                <pcz:foreName>John</pcz:foreName>
                <pcz:surName>Doe</pcz:surName>
        </dc:contributor>

When I use flatten="true", I get contributor="\n\t\tJohn\n\t\tDoe\n   " - it's 
OK (I can replace \n\t with a regex).

But when I use flatten="false":
  <field column="contributor" xpath="/metadata/contributor" flatten="false" />  
                              
I get contributor="\n\t\t\n\t\t\n   " ?! I expect to get xml, both child nodes 
pcz:foreName, including tag names and tags content. 

1) What I do wrong, is it a bug, do you test flatten="false"?

2) The page 
http://wiki.apache.org/solr/DataImportHandler#Configuration_in_data-config.xml-1
 says the optional parameter flatten is part of the entity tag, but it must be 
IMHO part of the field tag.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to