Note that there are some explanatory texts on larger screens.

plurals
  1. POUpdate a new field to existing document
    primarykey
    data
    text
    <p>is there possibility to update a new field to an existing document? For example: There is an document with several fields, e.g.</p> <pre><code>ID=99999 Field1:text Field2:text </code></pre> <p>This document is already in the index, now I want to insert a new field to this document WITHOUT the old data:</p> <pre><code>ID=99999 Field3:text </code></pre> <p>For now, the old document will be deleted and a new document with the ID will be created. So if I now search for the ID 99999 the result will be:</p> <pre><code>ID=99999 Field3:text </code></pre> <p>I read this at the Solr Wiki</p> <blockquote> <p>How can I update a specific field of an existing document?</p> <p>I want update a specific field in a document, is that possible? I only need to index one field for >a specific document. Do I have to index all the document for this? </p> <p>No, just the one document. Let's say you have a CMS and you edit one document. You will need to re-index this document only by using the the add solr statement for the whole document (not one field only). </p> <p>In Lucene to update a document the operation is really a delete followed by an add. You will need >to add the complete document as there is no such "update only a field" semantics in Lucene. </p> </blockquote> <p>So is there any solution for this? Will this function be implemented in a further version (I currently use 3.6.0). As a workaround, I thought about writing a script or an application, which will collect the existing fields, add the new field and update the whole document. But I think this will suffer performance. Do you have any other ideas?</p> <p>Best regards</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload