通过Drupal进行查询时,Apache Solr不同的结果 - 为什么? [英] Differing Apache Solr results when doing queries through Drupal – why?

查看:91
本文介绍了通过Drupal进行查询时,Apache Solr不同的结果 - 为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为 Apache Solr 创建一个自定义搜索界面,使用 Drupal ,我有一些奇怪的问题与结果。

I'm trying to create a custom search interface for Apache Solr using Drupal, and I'm having some strange issues with the results.

我当我从Solr的内置Web界面运行时,有相同的查询产生8个点击,当我通过Drupal运行时,该命令为0。任何人都可以解释为什么?

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?

这是查询,都来自Solr日志:

Here's the queries, both taken from the Solr log:


  • Solr后端

  • Solr backend


INFO:[] webapp = / solr path = / select params = {重量=标准&安培;行数= 10安培;开始= 0&安培; explainOther =安培; hl.fl =安培;缩进= ON&安培; q = ss_cck_field_goal:出售+ AND + ss_cck_field_type:(自己+ OR +鸡舍+ OR +房子+ OR +商业)+ AND + is_price:[10000 + TO + 5560000]& fl = *,score& qt = standard& version = 2.2} hits = 8 status = 0 QTime = 2


  • Drupal ApacheSolr模块

  • Drupal ApacheSolr module


    2009年3月9日15:37:31 org.apache.solr.core.SolrCore执行
    INFO:[] webapp = / solr path = / select params = {wt = json& rows = 10& json.nl =地图和放大器;启动= 0&安培; q = ss_cck_field_goal:出售+和+ ss_cck_field_type:(自己+ OR +鸡舍+ OR +房子+ OR +商业)+和+ is_price:10000 + TO + 5560000]放大器;版本= 1.2} hits = 0 status = 0 QTime = 9


  • 唯一的在我眼中的东西是 version = 1.2 参数,但我已经尝试删除它,这并不会改变行为。

    The only thing that sticks out in my eyes is the version=1.2 parameter, but I've tried removing it, and that doesn't change the behavior.

    经过大量调整后,我已经设法使用Drupal模块发送或多或少的相同参数,但仍然会产生0个结果:

    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:


    2009年3月9日17:47:43 org.apache.solr.core.SolrCore执行
    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

    任何人都可以解释这个? / p>

    Can anyone explain this?

    推荐答案

    请求处理程序(qt参数)可能不同。当没有定义(Drupal查询没有定义它)Solr使用默认处理程序。可能配置的默认处理程序不是标准请求处理程序...检查您的solrconfig.xml

    The request handler (qt parameter) might be different. When not defined (the Drupal query doesn't define it) Solr uses the default handler. Maybe the default handler configured is not the standard request handler... check your solrconfig.xml

    这篇关于通过Drupal进行查询时,Apache Solr不同的结果 - 为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆