1
Solarium을 사용하여 PHP에서 Solr에 액세스하고 있습니다. 솔라 리움을 사용하여 일반적인 select 쿼리를 수행하면 모든 것이 잘 동작합니다.Solr HTTP 오류 : 찾을 수 없음 (404) Solarium 사용
문제점 : MoreLikeThis 쿼리를 수행하려고하면 쿼리를 실행할 때 다음 오류가 발생합니다. 무엇이 잘못되었으며, 어떻게 고칠 수 있습니까?
Solr HTTP error: Not Found (404)
Location:
/home/mysite/public_html/application/libraries/Solarium/Result.php on line 98
PHP 코드
$client = new Solarium_Client($config);
$query = $client->createMoreLikeThis()
->setQuery('id:' . $product_id)
->setMltFields('title, description')
->setMinimumDocumentFrequency(1)
->setMinimumTermFrequency(1)
->setInterestingTerms('details')
->setMatchInclude(false)
->setRows(10);
$resultset = $client->select($query);
나는 /solarium/Client.php
에서 Solarium_Client_Response_Object
에 프로브하고 응답 당신은 SOLR에 구성된 morelikethis 핸들러가 필요
Solarium_Client_Response Object
(
[_headers:protected] => Array
(
[0] => HTTP/1.1 404 Not Found
[1] => Server: Apache-Coyote/1.1
[2] => Content-Type: text/html;charset=utf-8
[3] => Content-Length: 979
[4] => Date: Mon, 27 Aug 2012 12:03:42 GMT
[5] => Connection: close
)
[_body:protected] =>
[_statusCode:protected] => 404
[_statusMessage:protected] => Not Found
)