lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-1915) DebugComponent should use NamedList to output Explanations instead of Explanation.toString()
Date Fri, 14 May 2010 23:59:44 GMT

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

Hoss Man commented on SOLR-1915:
--------------------------------

Fun bit of trivia: this code actually existed in pre-apache Solar (i think it was about 10
lines) but because of a (short lived) bug in XmlResponseWriter that caused it to break horribly
if it walked a nested data structure more then 8 levels deep, I yanked it back out.

I can't believe it's taken me this long to think it would be handy to add it back in.

> 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
>
> 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


Mime
View raw message