Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 PHP PECL 查询 Solr 中的特定字段。
目前我正在使用 setQuery 函数,但这不允许我将查询设置为特定字段。
谢谢凯文
我认为你必须使用“edismax”解析器,试试这个:
$solrCriteria->setQuery(<your keyword here>); $solrCriteria->setParam('defType','edismax'); $solrCriteria->setParam('qf','<first field here> <second field here> ...');