Add a sort parameter to SearchEngine
authorNik Everett <neverett@wikimedia.org>
Fri, 24 Jan 2014 08:15:16 +0000 (00:15 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Wed, 7 Jan 2015 21:41:18 +0000 (13:41 -0800)
commit74b1c0d2563ff3e5d3de53b6bf6ee5d08a29fba1
tree9de5f0fe059f6cd3b3565faf052263ffecd9c910
parenta28038d44f4b25916ab872013ee82ee17b6b7d07
Add a sort parameter to SearchEngine

SearchEngine grows a method to list valid sort orders one to set the
sort for the next search, and one to read it.  The default implemenation
only supports 'relevance' and the documenation strongly urges that all
other implemenations leave that as the default.  Other implementations
can support other orders. Cirrus already supports title_asc and title_desc.

Change-Id: Ie946150c6796139201221dfa6f7750c210e97166
includes/search/SearchEngine.php