11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

This stylesheet transforms <strong>Solr</strong>'s XML search result format into <strong>Solr</strong>'s Update XML syntax. One example usage<br />

would be to copy a <strong>Solr</strong> 1.3 index (which does not have CSV response writer) into a format which can be indexed<br />

into another <strong>Solr</strong> file (provided that all fields are stored):<br />

http://localhost:8983/solr/my_collection/select?q=*:*&wt=xslt&tr=updateXml.xsl&rows=<br />

1000<br />

You can also use the stylesheet in XsltUpdateRequestHandler to transform an index when updating:<br />

curl "http://localhost:8983/solr/my_collection/update?commit=true&tr=updateXml.xsl"<br />

-H "Content-Type: text/xml" --data-binary @myexporteddata.xml<br />

For more information about the XML Update Request Handler, see https://wiki.apache.org/solr/UpdateXmlMessa<br />

ges.<br />

JSON Formatted Index Updates<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

187

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!