Make api nearmatch search work same as 'go' feature
authorErik Bernhardson <ebernhardson@wikimedia.org>
Thu, 30 Apr 2015 23:59:49 +0000 (16:59 -0700)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 5 May 2015 20:31:17 +0000 (16:31 -0400)
commit2a4675a17f8ae9bc50c948987d26aa655b509bde
treebd641ef869907bc9766f1a1a0728e29c7b608d17
parent87558fc80b968f1c47978869ac557dde90ad4ea0
Make api nearmatch search work same as 'go' feature

The 'nearmatch' feature of the api is the same as the 'go' feature of on-wiki
search. This makes the nearmatch api feature return the same results as the user
would have gotten in 'go', bringing more parity between api and browser based
searching. Without this change asking for a nearmatch within a namespace fails.

Bug: T37719
Change-Id: I715326242b63c558572ce9bf69b70bd650c2bc95
includes/api/ApiQuerySearch.php