Last modified: 2012-12-19 14:14:34 UTC
On [[Special:Search]] as well as [[:fr:Special:Search]], a drop-down box has been added which allows the user to select which search engine to use before clicking on "search". This is done via some JavaScript code in [[MediaWiki:Common.js]]. It would be better to implement it directly in MediaWiki as it wouldn't prevent users without JavaScript from seeing it. Fields could be localised via a system messages (label, URL...).
Special:Search is for users wishing to use the wiki's search service, whatever that is (e.g. built-in or Lucene, or other pluggable search engines). Users who wish to use an external search service, e.g. Google, should just...use it.
(In reply to comment #1) > [...] should just...use it. Indeed, but this isn't such an easy task for newbies. After all, there is already [[Special:Booksources]] to provide external searches for books. How about some new special page, [[Special:Externalsearch]] ?
Users new to wikis are not necessarily likely to be unable to search the web, however.
True, but adding the parameter "site:en.wikipedia.org" is not intuitive, and the syntax is different on other search engines. Which drawbacks would such a special page have ?
The books page or the search engines are more or less the same, people could use an external search service to find a book, they could use Google or well-known sites such as Amazon. If the problem is related to some kind of "sponsoring" avoidance, well I'd say Wikimedia shouldn't be indirectly "sponsoring" Amazon as well. The "Special:Booksources" could be potentially seen as a more "commercial" portal than the search page. But don't get me wrong, the Special:Booksources is a nice page and I find it very useful. An enhanced search page is logical for the sake of completeness.
Of course, Special:Booksources can also be extended to provide information on the item corresponding to the ISBN itself, among other things, so it's not as useless, and it's often helpful to have more direct, tailored search links for books. If someone has a distinct preference for locating things on the web using a specific provider, then they'll just use it. From a pragmatic point of view, if you want to provide this extra to people visiting your wiki using a bit of JavaScript, then you can, and I believe that to be sufficient, since it's likely people not using JavaScript will be savvy enough to know which search service they want to use.
Another point, of course, is that we might prefer to make some kind of deal at the corporate level before adding this sort of thing...
While it might be neat to have the ability, I don't think we can explicitly support this on the site until there's a foundation-level decision about support for third-party commercial search services through that interface. (The book services thing predates the existence of the foundation and has been hashed out many times over the years.)
I understand your points, yet some sort of external search hack is already implemented on most main Wikimedia wikis, often with big logos such as on [[:es:Special:Search]]. Having a drop-down menu would avoid this "advertisement" effect. Also, the selected search engines could be left up to the community, like on Special:Booksources which is customised by a MediaWiki message (I think). By default, no search engine would be activated, and each community adds its own.
No idea where <div id="searchengineChoices"> comes from on some wikis, but I'm highly against adding a dropdown box to make the user interface more cluttered. Also see comment 1.