Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Solr eDisk查询解析器无法获取搜索结果_Solr_Edismax - Fatal编程技术网

使用Solr eDisk查询解析器无法获取搜索结果

使用Solr eDisk查询解析器无法获取搜索结果,solr,edismax,Solr,Edismax,我已经安装并运行了Solr 5.2.1版,我正在尝试为我的搜索字段设置特定的boost参数。只要指定edismax defType和qf参数,就不会得到任何搜索结果 以下是我的例子: 无增压时 http://localhost:8983/solr/test/select?q=test&fl=title,description,score&wt=json&indent=true&defType=edismax { "responseHeader":{

我已经安装并运行了Solr 5.2.1版,我正在尝试为我的搜索字段设置特定的boost参数。只要指定edismax defType和qf参数,就不会得到任何搜索结果

以下是我的例子:

无增压时

http://localhost:8983/solr/test/select?q=test&fl=title,description,score&wt=json&indent=true&defType=edismax


{
  "responseHeader":{
    "status":0,
    "QTime":2,
    "params":{
      "fl":"title,description,score",
      "indent":"true",
      "q":"test",
      "wt":"json",
      "defType":"edismax"}},
  "response":{"numFound":11,"start":0,"maxScore":0.4290576,"docs":[
      {
    "title":"Link-Test",
    "score":0.4290576},
      {
    "title":"Auth-Test",
    "score":0.4290576},
      {
    "title":"test",
    "description":"Description for the search result page",
    "score":0.3754254},
      {
    "title":"Footer Test",
    "score":0.3217932},
      {
    "title":"Slider-Test",
    "score":0.268161},
      {
    "title":"Credit card TEST",
    "description":"This is the description of the credit card page test",
    "score":0.1608966},
      {
    "title":"Service",
    "score":0.15169477},
      {
    "title":"Linklist",
    "score":0.13273293},
      {
    "title":"My target page",
    "score":0.13273293},
      {
    "title":"Some download page",
    "score":0.094809234}]
  }}
http://localhost:8983/solr/test/select?q=test&fl=title,description,score&wt=json&indent=true&defType=edismax&qf=title^20+description


{
  "responseHeader":{
    "status":0,
    "QTime":2,
    "params":{
      "fl":"title,description,score",
      "indent":"true",
      "q":"test",
      "qf":"title^20 description",
      "wt":"json",
      "defType":"edismax"}},
  "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]
  }}
使用eDiscoveryMax boost

http://localhost:8983/solr/test/select?q=test&fl=title,description,score&wt=json&indent=true&defType=edismax


{
  "responseHeader":{
    "status":0,
    "QTime":2,
    "params":{
      "fl":"title,description,score",
      "indent":"true",
      "q":"test",
      "wt":"json",
      "defType":"edismax"}},
  "response":{"numFound":11,"start":0,"maxScore":0.4290576,"docs":[
      {
    "title":"Link-Test",
    "score":0.4290576},
      {
    "title":"Auth-Test",
    "score":0.4290576},
      {
    "title":"test",
    "description":"Description for the search result page",
    "score":0.3754254},
      {
    "title":"Footer Test",
    "score":0.3217932},
      {
    "title":"Slider-Test",
    "score":0.268161},
      {
    "title":"Credit card TEST",
    "description":"This is the description of the credit card page test",
    "score":0.1608966},
      {
    "title":"Service",
    "score":0.15169477},
      {
    "title":"Linklist",
    "score":0.13273293},
      {
    "title":"My target page",
    "score":0.13273293},
      {
    "title":"Some download page",
    "score":0.094809234}]
  }}
http://localhost:8983/solr/test/select?q=test&fl=title,description,score&wt=json&indent=true&defType=edismax&qf=title^20+description


{
  "responseHeader":{
    "status":0,
    "QTime":2,
    "params":{
      "fl":"title,description,score",
      "indent":"true",
      "q":"test",
      "qf":"title^20 description",
      "wt":"json",
      "defType":"edismax"}},
  "response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]
  }}
我是否必须以某种方式激活ExtendedDemax查询解析器?
这是我的

标题和说明是您仅有的两个字段吗?还有索引吗?没有,还有其他属性。标题和描述都编制了索引。当我使用titel->attr\u title and description->attr\u description的副本从schema.xml发布字段定义时,我确实得到了一些数据