[jira] [Updated] (SOLR-9530) Add an Atomic Update Processor

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Updated] (SOLR-9530) Add an Atomic Update Processor

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SOLR-9530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amrit Sarkar updated SOLR-9530:
    Attachment: SOLR-9530.patch

Considering Noble's and Ishan's feedback again,

removed all unwanted checks, reused elements and introduced multithreaded thread (I have used the most basic example for this, can be better). I have included two checks, for fieldName and atomicOperation passed in parameters, both will be verified later in DUP, but to me it made a lot of sense sending along a directed error message from this URP itself before processing any document altogether.

> Add an Atomic Update Processor
> -------------------------------
>                 Key: SOLR-9530
>                 URL: https://issues.apache.org/jira/browse/SOLR-9530
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public)
>            Reporter: Varun Thacker
>         Attachments: SOLR-9530.patch, SOLR-9530.patch, SOLR-9530.patch, SOLR-9530.patch, SOLR-9530.patch, SOLR-9530.patch, SOLR-9530.patch
> I'd like to explore the idea of adding a new update processor to help ingest partial updates.
> Example use-case - There are two datasets with a common id field. How can I merge both of them at index time?
> Proposed Solution:
> {code}
> <updateRequestProcessorChain name="atomic">
>   <processor class="solr.processor.AtomicUpdateProcessorFactory">
>     <str name="my_new_field">add</str>
>   </processor>
>   <processor class="solr.LogUpdateProcessorFactory" />
>   <processor class="solr.RunUpdateProcessorFactory" />
> </updateRequestProcessorChain>
> {code}
> So the first JSON dump could be ingested against {{http://localhost:8983/solr/gettingstarted/update/json}}
> And then the second JSON could be ingested against
> {{http://localhost:8983/solr/gettingstarted/update/json?processor=atomic}}
> The Atomic Update Processor could support all the atomic update operations currently supported.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]