Accept 'OK' status results from search engine
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 9 Nov 2016 00:41:11 +0000 (16:41 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 29 Nov 2016 23:24:52 +0000 (15:24 -0800)
commit362be5bb90ec45fddeeeb5f7860b601c114d62ac
tree9b0530e5a4ce0087ed33173286a0a91369087c37
parent444f5838afc627eccb102d3d229fe928998a3d9f
Accept 'OK' status results from search engine

Historically code that talks to the SearchEngine has been treating
anything other than a 'Good' result, such as results but with a warning
(perhaps the query timed out and only gave partial results) as a
complete failure. Adjust the handling to report results from an 'OK'
status response while attaching any warnings to the api response, or
in a notiable red box on Special:Search.

Bug: T134157
Change-Id: Ic5e0db727790f4fd189caa54ea5f01672d6a8ea4
includes/api/ApiQuerySearch.php
includes/specials/SpecialSearch.php
languages/i18n/en.json
languages/i18n/qqq.json