/    /  Solr – Updating Documents

Solr – Updating Documents:

In this tutorial, we will learn about updating the existing documents of an index.By Using the Request Handler we can Update the documents to the index.Below is the example to update documents to the index.

In the below Example you can observe we have changed the data inside the fields.



    <field name="id">i2007</field>

    <field name="name">i2Sonics</field>

    <field name="manu">i2Sonics Corp.</field>



The above XML can be used to update a document in Solr. If you execute the above command in documents tab in Solr, below is the result if you search for i2sonics.