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

Yonik Seeley commented on SOLR-7376:
------------------------------------

If it's a JSON string, we probably only want it written out verbatim if the 
JSON writer is being used (and be escaped normally otherwise)?

Another approach would be to have a json field type that is validated at index 
time and spit back directly at query time when using wt=json

> Allow DocTransformers to write directly to the response (support raw json/xml 
> fields)
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-7376
>                 URL: https://issues.apache.org/jira/browse/SOLR-7376
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Ryan McKinley
>            Assignee: Ryan McKinley
>
> In order to return raw json when wt=json (and raw xml when wt=xml), it would 
> be great if we could output directly to the response.
> I propose we can put a new `WriteableValue` in the response using 
> DocumentTransformer -- when a TextResponseWriter finds this type, it will let 
> the `WriteableValue` figure out what to do.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to