Re: Atomic update with condition

2018-04-11 Thread Shawn Heisey
On 4/11/2018 10:52 AM, SOLR4189 wrote: > How can I change field value by specific condition in indexing? > > Indexed Doc in SOLR: { id:1, foo:A } > Indexing Doc into SOLR: { id:1, foo: B } > > foo is single value field. > > Let's say I want to replace value of foo from A to B, if A > B, else do >

Atomic update with condition

2018-04-11 Thread SOLR4189
Hi all, How can I change field value by specific condition in indexing? Indexed Doc in SOLR: { id:1, foo:A } Indexing Doc into SOLR: { id:1, foo: B } foo is single value field. Let's say I want to replace value of foo from A to B, if A > B, else do nothing. Thank you. -- Sent from: