[
https://issues.apache.org/jira/browse/SOLR-7376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492571#comment-14492571
]
Ryan McKinley commented on SOLR-7376:
-------------------------------------
bq. If it's a JSON string, we probably only want it written out verbatim if the
JSON writer
Exactly, check:
https://github.com/voyagersearch/lucene-solr-for-voyager/blob/d1150c2c4ed5324d6830cfd996e7a595a4fd9fb6/solr/core/src/java/org/apache/solr/response/transform/RawValueTransformerFactory.java#L55
this checks if it is a JSON writer or does nothing. The other use case I am
looking at is doing one thing if it is XML and another if it is JSON (GeoJSON
vs KML etc)
> 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]