Ignore Field from indexing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Ignore Field from indexing

swap
Hi

I have document indexed. Email-Id is unique key in document. On updating I
need to ignore few field if its already exists. Please let me know if
something more required.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Reply | Threaded
Open this post in threaded view
|

Re: Ignore Field from indexing

Emir Arnautović
Hi,
You have two options when it comes to updating:
1. Send complete document with the same id that will replace existing document.
2. Use atomic updates to send changes, but not that fields need to be stored: https://lucene.apache.org/solr/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-AtomicUpdates <https://lucene.apache.org/solr/guide/6_6/updating-parts-of-documents.html#UpdatingPartsofDocuments-AtomicUpdates>

Solr (Lucene) does not support actual updating of indexed document, but only flagging existing document as deleted and inserting a new document with same id. It needs to know all values of this new document and it can come from a client (option 1) or it can use existing document to read some values (option 2).

HTH,
Emir
--
Monitoring - Log Management - Alerting - Anomaly Detection
Solr & Elasticsearch Consulting Support Training - http://sematext.com/



> On 10 Apr 2018, at 12:30, swap <[hidden email]> wrote:
>
> Hi
>
> I have document indexed. Email-Id is unique key in document. On updating I
> need to ignore few field if its already exists. Please let me know if
> something more required.
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html