title: Debugging Solr search queries on Sunspot
body: <p>How can I debug Solr search queries when using the Sunspot gem on Rails?  I have some queries that are returning bizarrely high scores, and I'm trying to get to the bottom of why this is happening.</p>
  
  <p>It doesn't seem like any debugging information is exposed to Sunspot, so I think that I need to debug through Solr directly. Fortunately, Solr has a handy web interface to search from, but for some reason, any queries I enter there return with 0 results.</p>
  
  <p>For example, when I search for the word "test" on my web app, it returns plenty of hits. When I search for the same thing on the Solr admin interface this is what I get:</p>
  
  <pre><code>&lt;response&gt;
    &lt;lst name="responseHeader"&gt;
      &lt;int name="status"&gt;0&lt;/int&gt;
      &lt;int name="QTime"&gt;172&lt;/int&gt;
      &lt;lst name="params"&gt;
        &lt;str name="explainOther"/&gt;
        &lt;str name="fl"&gt;*,score&lt;/str&gt;
        &lt;str name="indent"&gt;on&lt;/str&gt;
        &lt;str name="start"&gt;0&lt;/str&gt;
        &lt;str name="q"&gt;test&lt;/str&gt;
        &lt;str name="hl.fl"/&gt;
        &lt;str name="qt"&gt;standard&lt;/str&gt;
        &lt;str name="wt"&gt;standard&lt;/str&gt;
        &lt;str name="fq"/&gt;
        &lt;str name="version"&gt;2.2&lt;/str&gt;
        &lt;str name="rows"&gt;10&lt;/str&gt;
      &lt;/lst&gt;
    &lt;/lst&gt;
    &lt;result name="response" numFound="0" start="0" maxScore="0.0"/&gt;
  &lt;/response&gt; 
  </code></pre>