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

Andrzej Bialecki resolved SOLR-14233.
-------------------------------------
    Resolution: Fixed

This has been fixed in SOLR-14871.

> JsonSchemaCreator should support Map payloads
> ---------------------------------------------
>
>                 Key: SOLR-14233
>                 URL: https://issues.apache.org/jira/browse/SOLR-14233
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 8.4.1
>            Reporter: Andrzej Bialecki
>            Priority: Major
>         Attachments: schema.patch
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> While working on v2 API for SOLR-13579 I discovered that it's currently not 
> possible to use API methods where the payload content is a {{java.util.Map}}. 
> This is needed when passing arguments that are arbitrary key-value maps and 
> not strictly-defined beans.
> Specifically, I needed a method like this:
> {code}
> @Command(name = "setparams")
> public void setParams(SolrQueryRequest req, SolrQueryResponse rsp, 
> PayloadObj<Map<String, Object>> payload) {
> ...
> }
> {code}
> But this declaration produced confusing errors during API registration.
> Upon further digging I discovered that {{JsonSchemaCreator}} doesn't support 
> Map payloads.
> Attached patch seems to fix it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to