php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72761 Buggy example
Submitted: 2016-08-05 11:10 UTC Modified: 2016-08-05 13:44 UTC
From: michal dot zagdan at gmail dot com Assigned: cmb (profile)
Status: Closed Package: solr (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michal dot zagdan at gmail dot com
New email:
PHP Version: OS:

 

 [2016-08-05 11:10 UTC] 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);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-05 11:54 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: solr -Assigned To: +Assigned To: cmb
 [2016-08-05 11:54 UTC] cmb@php.net
Yes, that's obviously wrong. Can this line simply be removed?
 [2016-08-05 13:30 UTC] 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 13:37 UTC] cmb@php.net
Thanks, that sounds plausible.
 [2016-08-05 13:43 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339804
Log: Fix #72761: Buggy example
 [2016-08-05 13:44 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2016-08-05 13:44 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=c1194eea59e2a00a4104f084a4879eeab1403429
Log: Fix #72761: Buggy example
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 10:01:30 2024 UTC