php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27874 'online documentation' search feature, searches whole website
Submitted: 2004-04-05 17:37 UTC Modified: 2004-11-21 12:38 UTC
From: webmaster at learningmedia dot co dot nz Assigned:
Status: Not a bug Package: Website problem
PHP Version: Irrelevant OS: Mac OS X (10.3)
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at learningmedia dot co dot nz
New email:
PHP Version: OS:

 

 [2004-04-05 17:37 UTC] webmaster at learningmedia dot co dot nz
Description:
------------
When using the search feature of the website, the 'online documentation' option appears to search the whol site.

For example, when I searched for 'macro' using the 'online documentation' option the resulting page was:
http://www.google.com/search?q=macro+site:www.php.net&l=en
This is the same page that is returned when the 'whole site' search option is selected.

[Otherwise I love your site. I refer to the manual pages every day. :-]

Regards
James Robertson



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-21 12:31 UTC] frink at thewebdevguy dot com
In addition the syntax for the serch is wrong in Google. 
The www is added which should not be: 
 
array site:www.php.net 
 
The correct syntax in Google is: 
 
site:php.net array 
 
But this still provides a sitewide search... 
The old Google syntax allowed for sub-directories: 
 
site:php.net/manual array 
 
But now that will not work! 
It seems that the only way to solve this problem (which is 
really a Google problem...) is to create a subsite that 
Google can index. But we already have docs.php.net so we 
just need to changethe www. to docs. and problem is 
solved: 
 
site:docs.php.net array 
 
And it finds the page as the first one! 
But it's still not as good as the old search that 
imediately took me to the function if it existed. 
We should be able to use Google's lucky search to do this 
or we can implement it separate from google before the 
redirect in the search.php script... 
 
- mICON FRiNK
 [2004-11-21 12:38 UTC] goba@php.net
The www is intentionally included, to not include the mirror sites in the search results. docs.php.net is damn slow, it is just a test server for our upcoming livedocs documentation renderer which will include manual restricted search, so please be (a bit) patient.

Our website only has a few pages more than the manuals, so I don't think this is a critical problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC