lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan McKinley <ryan...@gmail.com>
Subject Re: [jira] [Commented] (SOLR-2417) Allow explain info directly to response documents
Date Tue, 29 Mar 2011 01:52:38 GMT
On Mon, Mar 28, 2011 at 9:36 PM, Chris Hostetter
<hossman_lucene@fucit.org> wrote:
>
> : On IRC, yonik suggested that the explain format should mimic follow what
> : the debugQuery parameter would use.
> :
> : I'm don't really agree -- long term I would even suggest dropping the
> : explain section from debug and letting you specify it as an inline
> : parameter.
>
> those seem like orthoginal issues:
>
> 1) (ryan) deprecate/remove the explain section from debug and
> tell people to use the "_explain_" psuedo field instead
>
> 2) (ryan) add options to the _explain_ psuedofield to let you pick
> an explanation style inline (ie: _explain:nl_)
>
> 3) (yonik) make the _explain_ psuedofield respect the
> debug.explain.structured param (or something like it)
>
> #1 & #2 don't preclude #3 ... if i always want to get the "nl" mode
> explanations, it would be nice to be able to hardcode something a param
> the defaults section for my handler so that adding the _explain_
> psuedofield just made it happen.
>

As is, it is not defined by a param, but via solrconfig:

<transformer name="explain"
class="org.apache.solr.response.transform.ExplainAugmenterFactory" >
  <str name="args">nl</str>
</transformer>

As is, Transformers do not have access to SolrParams -- i think that
is OK, but we should discuss

TransformerFactory could easily be changed to take SolrParams or
SolrQueryRequest.


ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message