Differences in Apache Solr Results When Executing Queries Through Drupal - Why?

I am trying to create a user search interface for Apache Solr using Drupal and I am having some strange problems with the results.

I have the same query that gives 8 beats when I run it from the Solr built-in web interface, and 0 beats when I run it through Drupal. Can someone explain why?

Here are the queries taken from Solr magazine:

  • Solr backend

    INFO: [] webapp=/solr path=/select params={wt=standard&rows=10&start=0&explainOther=&hl.fl=&indent=on&q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]&fl=*,score&qt=standard&version=2.2} hits=8 status=0 QTime=2

  • Drupal ApacheSolr Module

    09-Mar-2009 15:37:31 org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={wt=json&rows=10&json.nl=map&start=0&q=ss_cck_field_goal:sell+AND+ss_cck_field_type:(own+OR+coop+OR+house+OR+commercial)+AND+is_price:[10000+TO+5560000]&version=1.2} hits=0 status=0 QTime=9

The only thing that sticks out in my eyes is the version=1.2 parameter, but I tried to remove it, and that did not change the behavior.

After many settings, I managed to create a Drupal module for sending more or less the same parameters, but it still gives 0 results:

09-Mar-2009 17:47:43 org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={wt=standard&rows=10&start=0&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

Can anyone explain this?

+6
drupal solr
source share
2 answers

request handler (qt parameter) may differ. If not defined (a Drupal request does not define it), Solr uses the default handler. Perhaps the default configured handler is not a standard request handler ... check your solrconfig.xml file

+3
source share

Could it be that the Drupal request must have a non-empty fl parameter (list of fields)? no fields to display: no results?

0
source share

All Articles