OpenSearch for this site works like a charm, but has anyone else noticed that question (query) passed to it isn’t trimmed of white spaces?
Just pasted in my Firefox to Yii API Search a "CActiveDataProvider ". Got result:
(link’s text for did you mean trimmed of last space, but actual link, not - i.e.: http://www.yiiframew…ype=api-suggest)
When clicking did you mean link, you (obvious) also get no results.Of course, when pasting (typing) "CActiveDataProvider" (without space at the end) everything works fine and proper document is found.
BTW: Wei, I can confirm that trimming is working fine. But what about second proposition raised by GOsha? I mean - is it technically possible that if search returns only one result that page would be auto-redirected to that result?
For example, if you put "CTreeView.getClientOptions()" into search, you should receive only one result - that is method you are looking for. Is it possible that page would redirect automatically to this topic, instead of displaying it as only one search result?
EDIT: Just noticed something strange. If you enter exactly "CTreeView.getClientOptions()" into Firefox (OpenSearch) this phrase will be searched (and currently returned as only one search result). But if you enter the very same phrase directly to search box that is on every page in a menu, then you will receive that no results were found. Odd…
As designed OpenSearch must give instant access to information directly from browsers searchbar. But all browsers except IE not supports pointig result urls. Autosuggestion works perfectly, and once clicked expects 1 result in most cases. Thats why user don`t need to do additional click to see desired option. And this situation little noizing mind.
This redirect will be very useful for api searchers and must do working process more fast and smooth.
Yes, no I can confirm that it is working as it is expected and as you wrote it. Maybe I missed something when testing / reporting that odd behaviour few days ago.
I agree with others. This should be implemented. I don’t see any reason for requiring user to do another click - if (and only if) there is only one search result.