You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2010/05/26 00:53:39 UTC
[jira] Updated: (SOLR-1915) DebugComponent should use NamedList to
output Explanations instead of Explanation.toString()
[ https://issues.apache.org/jira/browse/SOLR-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-1915:
---------------------------
Attachment: SOLR-1915.patch
patch making the necessary changes.
Just in case some poor soul was actually attempting to programmaticality parse the old "toString()" response, i added a new "debug.explain.stringFormat=true" param to force the old behavior, but the default is to be a structured response, and frankly i don't think we should even document that param except in the upgrade section of CHANGES.txt (where i explicitly indicated that it would be removed in the next release -- it should only be there as a red flag and a stop gap in case people don't notice the change until it breaks something)
> DebugComponent should use NamedList to output Explanations instead of Explanation.toString()
> --------------------------------------------------------------------------------------------
>
> Key: SOLR-1915
> URL: https://issues.apache.org/jira/browse/SOLR-1915
> Project: Solr
> Issue Type: Improvement
> Components: SearchComponents - other
> Reporter: Hoss Man
> Assignee: Hoss Man
> Priority: Minor
> Attachments: SOLR-1915.patch
>
>
> DebugComponent currently uses Explanation.toString() to "format" score explanations for each document as plain text with whitespace indenting to denote the hierarchical relationship, and then adds those explanations to the SolrQueryResponse.
> Instead DebugComponent should transform the Explanation objects into NamedLists so that the full structure can be formatted in a logical way by the ResponseWriter
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org