Increase parity between api search and on-wiki search
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 29 Apr 2015 20:42:03 +0000 (13:42 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Thu, 30 Apr 2015 15:52:04 +0000 (08:52 -0700)
commit87558fc80b968f1c47978869ac557dde90ad4ea0
treecf4c3c62abfacc160bafee4ea04c4f822a9ec970
parent5026644ba4985635c66cc07aebe3cabbd8026d01
Increase parity between api search and on-wiki search

The on wiki search indicates more information than is currently
available by api.  Adds two more props to improve parity:

* categorysnippet: similar to the other snippets, about the category
  that triggered the match
* isfilematch: indicates if the match was part of file content

Additionally when 'suggestion' is included as part of the searchinfo,
'suggestionsnippet' is now also returned.

Change-Id: Ibf18905775a79caed213aca1bdebcffe3644c23b
includes/api/ApiQuerySearch.php
includes/api/i18n/en.json