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 <erickerick...@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.ne...@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'>

Reply via email to