lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Swaroop <>
Subject Re: Suggestion on indexing complex xml
Date Tue, 03 Mar 2015 03:13:17 GMT
Thanks for your time and suggestions Alex...

a) So, if I use xslt... then SOLR output result will be xml, or there is a
trick to get json also

b) I am trying to figure out xslt template for my xml (as below) input to
differentiate "parameter1" & "parameter2" as some elements are common (e.g.
name, value)... any help will be great.
Trying to figure out best approach for below xml.

c) Is there a way to get the attribute (e.g. version) also for element
(e.g. parameter)

*XML input :*
<?xml version="1.0" encoding="UTF-8"?>
            <*parameter1 *version="1.0">
               <description>description test</description>


On Fri, Feb 27, 2015 at 4:43 PM, Alexandre Rafalovitch <>

> On 27 February 2015 at 16:11, Vishal Swaroop <> wrote:
> > I am able to index XML with same "name" element but in different XPATH by
> > using XPathEntityProcessor "forEach" (e.g. below)
> >
> > Just wondering if there is better way to handle this xml format.
> DIH's XML parser is rather limited and literally-minded. You could
> instead pre-process XML with XSLT:
> Or looking into something like SIREn:
> Regards,
>    Alex.
> ----
> Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message