Page 1 of 1

Documentation Searches

Posted: 13 Nov 2015, 16:44
by Peabianjay
Is this a temporary problem? Or, maybe it's just me?

Searching for anything using the Search field provided in http://autohotkey.com/docs/AutoHotkey.htm (linked from THIS window) doesn't report any documentation, only forums & discussions.

Re: Documentation Searches

Posted: 13 Nov 2015, 17:06
by wolf_II
You can search the docs with:
goto http://autohotkey.com/docs/AutoHotkey.htm
click INDEX
use the small search field there

I hope that helps.

Re: Documentation Searches

Posted: 14 Nov 2015, 00:37
by MasterFocus
While wolf_II's suggestion may be helpful, I also think it is not the intended behaviour of that Search field, so I'm moving this to Forum Issues.

Re: Documentation Searches

Posted: 14 Nov 2015, 15:28
by Peabianjay
Wolf_II:
Using the small search field in http://autohotkey.com/docs/AutoHotkey.htm to look for "Guicontrol" for example, doesn't give any link to https://autohotkey.com/docs/commands/GuiControl.htm (although, it clearly exists).

MasterFocus:
The behaviour has definately changed. If (after trying the search above) you click on the "Documentation" tab, I always get "No results" (now).
Nice to know it's actually an Issue, and not just me working with too little sleep. :-)

Re: Documentation Searches

Posted: 14 Nov 2015, 20:06
by lexikos
We're aware of the problem, and I think it was probably caused by recent changes to the custom search engine which were supposed to simply change from ahkscript.org/docs to autohotkey.com/docs. Looking at the search engine config, I totally do not understand why it is behaving the way it is.

I searched for "MsgBox" the other day and got "Changing MsgBox's Button Names" from ahkscript.org/docs/, but it was under the Archived Forums category. If I searched on the CSE admin page, I got "IfMsgBox" instead, also under Archived Forums. There's nothing even supposed to be in that category according to CSE admin. Today, those results don't appear at all, and "Forums" and "Archived Forums" appear to give identical results.

(Edit: OK, I figured out the Archived Forums mystery and now it returns no results, as I originally expected it to.)
(Edit: Actually, the setting I found accounts for why the docs were appearing in that category. However, I still don't know why most of the documentation is missing from the results.)

Re: Documentation Searches

Posted: 14 Nov 2015, 21:23
by lexikos
After stuffing around for a while, I've concluded that Google Custom Search Engine is crap simply does not work the way it is supposed to. Even on the CSE admin page, it will return results in categories which have no sites assigned to them. For example, if I remove /board/ from Archived Forums, the Archived Forums results are then empty, but some /board/ results still appear under the Forums category even though nothing is assigned to that category. I give up for now. (joedf and tank also have access.)

I have also looked into the Google webmaster tools. Apparently http://autohotkey.com, https://autohotkey.com, http://www.autohotkey.com and https://www.autohotkey.com are considered separate sites by Google (at least for the webmaster tools). However, the URL pattern 'www.example.com/*' (according to Google) is supposed to match both 'example.com/foo' and 'www.example.com/foo'. Our custom search engine was set to include 'autohotkey.com/docs/*', so I changed it to 'www.autohotkey.com/docs/*'. It didn't help. (If you do a normal google search with site:autohotkey.com, it will return results from http://www.autohotkey.com/docs/.)

Re: Documentation Searches

Posted: 15 Nov 2015, 01:48
by joedf
Fixed. After a lot of searching, I found that there was an exclude on autohotkey.com/docs/*. :lol: :facepalm:
It was set in place back when autohotkey.com/docs only had the v1.0 docs.

Re: Documentation Searches

Posted: 15 Nov 2015, 13:28
by Peabianjay
Woohoo!

You da man!

Re: Documentation Searches

Posted: 15 Nov 2015, 18:18
by Peabianjay
Well....

It's not perfect, but much better. :-) Although documentation is now listed, so too is everything else.....and some bonus stuff.

https://cse.google.com/cse?cx=010629462 ... &gsc.sort=

"All" results total 6410

https://cse.google.com/cse?cx=010629462 ... umentation

"Documentation" results total 6540. 130 items that are documents but not "all"?

Re: Documentation Searches

Posted: 15 Nov 2015, 21:52
by lexikos
"Documentation" was set to "Give priority to the sites with this label". I have changed it back to "Search only the sites with this label" (which I could have sworn it was set to when I looked through the settings earlier...).

Re: Documentation Searches

Posted: 15 Nov 2015, 22:03
by joedf
Hmm, it must have been me when I was fooling around trying to fix the other problem :s ;)

Re: Documentation Searches

Posted: 16 Nov 2015, 14:53
by Peabianjay
Nice! Excellent response & repair time, guys. Mucho gracias!