lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Ryan <help...@gmail.com>
Subject How to obtain the Explained output programmatically ?
Date Mon, 03 Oct 2011 20:58:13 GMT
Hi,

I need to use some detailed information of the explained result in Solr
search.

Here is one example:

*
http://localhost:8983/solr/select/?q=GB&version=2.2&start=0&rows=10&indent=on&debugQuery=true&fl=id,score
*

    <str name="6H500F0">
0.18314168 = (MATCH) sum of:
  0.18314168 = (MATCH) weight(text:gb in 1), product of:
    0.35845062 = queryWeight(text:gb), product of:
      2.3121865 = idf(docFreq=6, numDocs=26)
      0.15502669 = queryNorm
    0.5109258 = (MATCH) fieldWeight(text:gb in 1), product of:
      1.4142135 = tf(termFreq(text:gb)=2)
      2.3121865 = idf(docFreq=6, numDocs=26)
      0.15625 = fieldNorm(field=text, doc=1)
</str>

I could see the explained result by clicking the "toggle explain" button in
the web browser.   Is there a way to access the explained output
programmatically?


Regards,
David

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message