Re: Conditional Add/Overwrite a document

2015-10-31 Thread Gili Nachum
Amazing. Thanks Brendan. On Thu, Oct 29, 2015 at 12:31 AM, Brendan Humphreys < bren...@canva.com.invalid> wrote: > Hi Gili, > > It sounds like Solr's DocBasedVersionConstraintsProcessor is what you are > looking for: > > > https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documen

Re: Conditional Add/Overwrite a document

2015-10-28 Thread Brendan Humphreys
Hi Gili, It sounds like Solr's DocBasedVersionConstraintsProcessor is what you are looking for: https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents#UpdatingPartsofDocuments-DocumentCentricVersioningConstraints Cheers, -Brendan On 29 October 2015 at 06:33, Gili Nachum w

Conditional Add/Overwrite a document

2015-10-28 Thread Gili Nachum
Hi, Is there a conditional Add operation in Solr? My documents have "my_int" field and when re-adding a document with the same ID, I would to overwrite the existing doc only if the new doc my_int value is higher than that of the existing doc. As a naive solution, I could first read the existing d