【问题标题】:Querying fields in Apache Solr with PHP PECL使用 PHP PECL 查询 Apache Solr 中的字段
【发布时间】:2011-10-17 15:13:17
【问题描述】:

我正在尝试使用 PHP PECL 查询 Solr 中的特定字段。

目前我正在使用 setQuery 函数,但这并没有 让我将查询设置为特定字段。

谢谢 凯文

【问题讨论】:

    标签: php solr pecl edismax


    【解决方案1】:

    我认为你必须使用“edismax”解析器,试试这个:

    $solrCriteria->setQuery(<your keyword here>);
    $solrCriteria->setParam('defType','edismax');
    $solrCriteria->setParam('qf','<first field here> <second field here> ...');
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-18
      • 1970-01-01
      • 1970-01-01
      • 2015-09-06
      • 2018-03-08
      • 1970-01-01
      • 2022-01-09
      • 1970-01-01
      相关资源
      最近更新 更多