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

查看:22
本文介绍了通过 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={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 模块

  • Drupal ApacheSolr module

    09-Mar-2009 15:37:31 org.apache.solr.core.SolrCore 执行信息:[] 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

  • 唯一在我眼中突出的是 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:

    09-Mar-2009 17:47:43 org.apache.solr.core.SolrCore 执行信息:[] 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+商业)+AND+is_price:[10000+TO+5560000]} hits=0 status=0 QTime=13

    谁能解释一下?

    推荐答案

    请求处理程序(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天全站免登陆