lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rangeli nepal <rangeli.ne...@gmail.com>
Subject Re: Index and query
Date Wed, 15 Mar 2017 18:49:27 GMT
Thank you. I like both option XSLT and mapping rules. Would you please
provide some pointers to it? so that I can use it.

Thanks again.
Regards,
rn

On Wed, Mar 15, 2017 at 1:37 PM, Alexandre Rafalovitch <arafalov@gmail.com>
wrote:

> Additionally,
>
> Solr can index arbitrary XML by applying an XSLT transform to it
> before indexing. But you still need to write the XSLT transform.
>
> Solr can also index arbitrary XML with DataImportHandler by pulling
> out specific fields. But you need to write mapping rules.
>
> I am not sure what exactly is being done here. I would have expected
> some error message if just a random XML is being thrown at Solr.
>
> Regards,
>    Alex.
> ----
> http://www.solr-start.com/ - Resources for Solr users, new and experienced
>
>
> On 15 March 2017 at 13:11, Erick Erickson <erickerickson@gmail.com> wrote:
> > Solr does _not_ index arbitrary XML, it will index XML in a very
> > specific format, i.e.
> > <add>
> >   <doc>
> >      <field name="whatever">value</field>
> >        .
> >        .
> >   </doc>
> > </add>
> >
> > So if you're sending arbitrary XML to Solr I'm actually surprised it's
> indexing.
> >
> > You might be able to do something with sending docs through Tika
> > (ExtractingRequestHandler).
> >
> > Best,
> > Erick
> >
> > On Wed, Mar 15, 2017 at 9:50 AM, rangeli nepal <rangeli.nepal@gmail.com>
> wrote:
> >> Good Afternoon,
> >>
> >> I am trying to index xml documents and query them. Once query
> successfully matches, I am hoping to download the uploaded and indexed xml
> document.
> >>
> >> Initially I thought solr supports xml. Thus I did not make any change
> to my default installation. However I was not able to query with the
> keyword there in document.
> >>
> >> Since most of the sensible token is stored with attribute “name”. I
> changed managed-schema and added an attribute “name”. But no avail.
> >> I believe I am missing something. Your feedback will be a great help.
> >>
> >> Thank you.
> >> Regards,
> >> r.n.
> >>
> >>
> >> <nestedClassifier xmi:type='uml:CommunicationPath'
> xmi:id='_18_2_2ff0127_1452978628060_399984_6195' name='TLS/DNS/etc'>
> >>                                 <memberEnd xmi:idref='_18_2_2ff0127_
> 1452978628060_557499_6196'/>
> >>                                 <memberEnd xmi:idref='_18_2_2ff0127_
> 1452978628061_485164_6197'/>
> >>                         </nestedClassifier>
> >>                         <nestedNode xmi:type='uml:Node'
> xmi:id='_18_2_2ff0127_1452882456655_449194_4228' name='Stealth Master
> DNS'>
>

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