jprante / elasticsearch-xml

XML interface for Elasticsearch REST
Apache License 2.0
44 stars 5 forks source link

Arrays not importing #6

Open richardpeng opened 10 years ago

richardpeng commented 10 years ago

I have a document that contains the following structure:

<AuthorList CompleteYN="Y">
    <Author ValidYN="Y">
        <LastName>Smith</LastName>
        <ForeName>T M</ForeName>
        <Initials>TM</Initials>
        <Affiliation>Some place</Affiliation>
    </Author>
    <Author ValidYN="Y">
        <LastName>Johnson</LastName>
        <ForeName>K P</ForeName>
        <Initials>KP</Initials>
    </Author>
</AuthorList>

When I send this as part of an XML document for processing, I only get the first entry instead of the entire array.

jprante commented 10 years ago

You can not index XML with this plugin, you can just show Elasticsearch responses in XML.

forzagreen commented 9 years ago

You have to send element-by-element