Doc #72761 [Ver]: Buggy example
| From: | cmb@php.net | Date: | Fri, 05 Aug 2016 13:37:53 +0000 |
| Subject: | Doc #72761 [Ver]: Buggy example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13796@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72761&edit=1
ID: 72761
Updated by: cmb@php.net
Reported by: michal dot zagdan at gmail dot com
Summary: Buggy example
Status: Verified
Type: Documentation Problem
Package: solr
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks, that sounds plausible.
Previous Comments:
------------------------------------------------------------------------
[2016-08-05 13:30:08] michal dot zagdan at gmail dot com
From what I've just testes it's needed to return anything. It would be best to change it
to:
$query->setQuery('*:*');
------------------------------------------------------------------------
[2016-08-05 11:54:26] cmb@php.net
Yes, that's obviously wrong. Can this line simply be removed?
------------------------------------------------------------------------
[2016-08-05 11:10:38] michal dot zagdan at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/solrquery.addfilterquery
---
In example code query sets itself instead of query text:
$query = new SolrQuery();
$query->setQuery($query);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72761&edit=1