Note that there are some explanatory texts on larger screens.

plurals
  1. PODiffering Apache Solr results when doing queries through Drupal – why?
    primarykey
    data
    text
    <p>I'm trying to create a custom search interface for <a href="http://lucene.apache.org/solr/" rel="nofollow noreferrer">Apache Solr</a> using <a href="http://drupal.org" rel="nofollow noreferrer">Drupal</a>, and I'm having some strange issues with the results.</p> <p>I have the same query yielding 8 hits when I run it from Solr's built-in web interface, and 0 hits when I run it through Drupal. Can anyone explain why?</p> <p>Here's the queries, both taken from the Solr log:</p> <ul> <li><p>Solr backend</p> <blockquote> <p><code>INFO: [] webapp=/solr path=/select params={wt=standard&amp;rows=10&amp;start=0&amp;explainOther=&amp;hl.fl=&amp;indent=on&amp;q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]&amp;fl=*,score&amp;qt=standard&amp;version=2.2} hits=8 status=0 QTime=2</code></p> </blockquote></li> <li><p>Drupal ApacheSolr module</p> <blockquote> <p><code>09-Mar-2009 15:37:31 org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={wt=json&amp;rows=10&amp;json.nl=map&amp;start=0&amp;q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]&amp;version=1.2} hits=0 status=0 QTime=9</code></p> </blockquote></li> </ul> <p>The only thing that sticks out in my eyes is the <code>version=1.2</code> parameter, but I've tried removing it, and that doesn't change the behavior.</p> <p>After lots of tweaking, I've managed to the Drupal module to send more or less the same parameters, but it still gives 0 results:</p> <blockquote> <p><code>09-Mar-2009 17:47:43 org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={wt=standard&amp;rows=10&amp;start=0&amp;q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]} hits=0 status=0 QTime=13</code></p> </blockquote> <p>Can anyone explain this?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload