Thanks for bringing closure.

Erick

On Tue, Feb 16, 2010 at 7:13 PM, uwdanny <uwda...@gmail.com> wrote:

>
> update - found the answer
>
> API getExplainList in org.apache.solr.util.SolrPluginUtils
>
> works.
>
>
>
>
> uwdanny wrote:
> >
> > Hi,
> >
> > I was trying to get the detailed "explain" info in (java) code using the
> > APIs, see codes below,
> >
> > -----------------
> > ResponseBuilder rb (from some inherited process function)
> > SolrIndexSearcher searcher = rb.req.getSearcher();
> > Query query = rb.getQuery();
> > Explanation epl = searcher.explain(query, docId)
> > -----------------
> >
> > here, the docId is a valid doc id, the query is a valid one as well
> > (verified in log); however, I always get back score 0.0 for any matching
> > ----
> > INFO: 0.0 = (NON-MATCH) Failure to meet condition(s) of
> > required/prohibited clause(s)
> > ----
> >
> > but if I issue the same query thru url with debugQuery=on, the explain
> > section shows the breakdown of the score correctly.
> >
> > anything I'm missing here?
> >
> > thanks,
> >
> > - danny Z
> >
>
> --
> View this message in context:
> http://old.nabble.com/How-to-retrieve-relevance-%22debug-explain%22-info-in-code--tp27602530p27617278.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>

Reply via email to