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

Nick Shanin edited comment on SOLR-17268 at 10/26/26, 4:51 PM:
---------------------------------------------------------------

Two possible fixes:
arrntv handled by the legacy JSONResponseWriter, about 15 lines.
JacksonJsonWriter writes json.nl=arrntv natively. A named list becomes an array 
of {"name", "type", "value"} objects.

I can work on both fixes if someone is willing to review. Please provide some 
direction.


was (Author: JIRAUSER314749):
Two possible fixes:
arrntv handled by the legacy JSONResponseWriter, about 15 lines.
JacksonJsonWriter writes json.nl=arrntv natively. A named list becomes an array 
of {"name", "type", "value"} objects.

I can work on both fixes if someone is willing to review. Please provide some 
direction.

> Solr 9.3-9.6 (JacksonJsonWriter) does not support "json.nl=arrntv"
> ------------------------------------------------------------------
>
>                 Key: SOLR-17268
>                 URL: https://issues.apache.org/jira/browse/SOLR-17268
>             Project: Solr
>          Issue Type: Bug
>          Components: Response Writers
>    Affects Versions: 9.3, 9.4, 9.5, 9.4.1, 9.6
>            Reporter: Ramsey Haddad
>            Priority: Minor
>
> Asking for facets and using "json.nl=arrntv" results in the exception:
> {code:java}
> arrntv namedListStyle must only be used with 
> ArrayOfNameTypeValueJSONWriter{code}
> * Code inspection shows that ArrayOfNameTypeValueJSONWriter is supported by 
> the older JSONResponseWriter and not by the newer JacksonJsonWriter.
> * Running a facet query with "json.nl=arrntv" works for 9.2.0 and 9.2.1
> * Running a facet query with "json.nl=arrntv" fails (Exception/500) for 9.3.0 
> and 9.6.0
> * For 9.3.0, using 
> {code:java}
> <queryResponseWriter name="json" class="solr.JSONResponseWriter" />
> {code}
>  in solrconfig.xml is a successful workaround.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to