I have a fairly simple need to do a conditional update in Solr, which is
easily accomplished in MySQL.

For example,

    * I have 100 documents with a unique field called <id>
    * I am POSTing 10 documents, some of which may be duplicate <id>s, in
which case Solr would update the existing records with the same <id>s
    * I have a field called <dateCreated> and I would like to only update a
<doc> if the new <dateCreated> is greated than the old <dateCreated> (this
applies to duplicate <id>s only, of course)

How would I be able to accomplish such a thing?

The context is trying to combat race conditions resulting in multiple adds
for the same ID but executing in the wrong order.

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Solr-conditional-adds-updates--tp24979499p24979499.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to