[ https://issues.apache.org/jira/browse/SOLR-9376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17478327#comment-17478327 ]
Michael Gibney commented on SOLR-9376: -------------------------------------- The PR also proposes changing the current behavior of the {{[xml]}} doc transformer. Currently {{q=\*:\*&wt=xml&fl=some_field:[xml]}} results in {code:xml} <result name="response" numFound="1" start="0" numFoundExact="true"> <doc><root><child1>raw xml</child1></root></doc> </result> {code} This is weird IMO because it loses the field name and just dumps the contents of the field directly in the top level of the doc. For comparison, the {{[json]}} doc transformer includes the field: {code:json} "response":{"numFound":1,"start":0,"maxScore":1.0,"numFoundExact":true,"docs":[ {"some_field":{"some":"raw", "json":"content"}} ]} {code} [PR #513|https://github.com/apache/solr/pull/513] proposes changing the behavior of the xml doc transformer to be consistent with that of the json doc transformer (and with Solr responses more generally), i.e.: {code:xml} <result name="response" numFound="1" start="0" numFoundExact="true"> <doc><raw name="some_field"><root><child1>raw xml</child1></root></raw></doc> </result> {code} This is a substantial change in the response format (for anyone who's already using the {{[xml]}} doc transformer. But fwiw I remember when _I_ first used it, I was surprised by the current behavior. And in any event I definitely think the way it's currently done does not make sense. > RawValueTransformerFactory ([json] & [xml]) don't work in SolrCloud > ------------------------------------------------------------------- > > Key: SOLR-9376 > URL: https://issues.apache.org/jira/browse/SOLR-9376 > Project: Solr > Issue Type: Bug > Reporter: Chris M. Hostetter > Priority: Major > Time Spent: 4h 20m > Remaining Estimate: 0h > > While working on SOLR-9314, I discovered that RawValueTransformerFactory > (which powers the {{[xml]}} and {{[json]}} doc transformers) doesn't work > with distributed requests. > This affects both regular searches, as well as RTG (committed or uncommitted) -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org