[ 
https://issues.apache.org/jira/browse/SOLR-10858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045408#comment-16045408
 ] 

David Smiley commented on SOLR-10858:
-------------------------------------

Yes -- request should override config.  In this way it's just like a request 
handler definition.

I wonder if there should be a larger discussion (not expressly for this 
particular URP) about this overall.  For example, what should the conventions 
be on parameter naming?   <abbreviatedUrpName>.<paramName> ?  Should 
abbreviated URP names be initial lowercase (thus "uuid" not "UUID").  I think 
so.  And is there a way to have an URP registered multiple times with different 
configurations each?  Perhaps up to some factories.  I recently wrote a custom 
URP that applies regexes to extract new fields from others, and I made the 
factory recognize when it needed to add multiple URP instances.  Perhaps some 
of our current URPs apply; but perhaps many don't because they are already 
based on configurations that have mechanisms to match multiple fields.

> Make UUIDUpdateProcessorFactory as Runtime URP; take params(s) with request
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-10858
>                 URL: https://issues.apache.org/jira/browse/SOLR-10858
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: update
>            Reporter: Amrit Sarkar
>            Priority: Minor
>         Attachments: SOLR-10858.patch
>
>
> We are trying to get rid of processor definitions in SolrConfig for all URPs 
> and take parameters in the request itself.
> UUIDUpdateProcessorFactory will be able to execute by sample curl like below:
> {code}
>  curl -X POST -H Content-Type: application/json  
> http://localhost:8983/solr/test/update/json/docs?processor=UUID&UUID.fieldName=id&commit=true
>  --data-binary {"title": "titleA"}
> {code}
> {code}
>  curl -X POST -H Content-Type: application/json  
> http://localhost:8983/solr/test/update/json/docs?processor=UUID&commit=true 
> --data-binary {"id":"1","title": "titleA"}
> {code}
> {code}
>  curl -X POST -H Content-Type: application/json  
> http://localhost:8983/solr/test/update/json/docs?processor=UUID&UUID.fieldName=id&commit=true
>  --data-binary {"id":"1","title": "titleA"}
> {code}
> Configuration for UUIDUpdateProcessorFactory in solrconfig.xml is optional.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to