Search: Allow searchContainedSyntax to be defined by constructor
authorErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 18 May 2015 23:19:12 +0000 (16:19 -0700)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 18 May 2015 23:19:16 +0000 (16:19 -0700)
commitc24303d6b01352f8b43a2b8bbb844dad6bdf16d4
tree87811f85e33fcdbf27a31542e17cf0c9a673292d
parent612e5f1137f42f02eb9b5a4deb7e8934684c3caa
Search: Allow searchContainedSyntax to be defined by constructor

The SearchResultSet is returned where no query is performed because it
is known ahead of time that no result exists. In cases where that is
known due to the syntax of the query (e.g. the syntax requires
searching a category that does not exist) this searchContainedSyntax
method returns the wrong value. This patch makes it possible for the
instantiating code to properly set the return value of this method.

Change-Id: I7b7be24f5630a48d2a561e4fda9cec696a8cacf9
includes/search/SearchResultSet.php