Wikia/app — pull request #584 by relwell (2013-04-05 22:26:43+00:00)
Title: Bugid 100565 -- Introduce new user-elicited query extraction layer to Search

This adds the class Wikia\Search\Query\Select, which handles mutating the input according to needs for security, HTML compatibility, and Lucene Query Syntax compatibility.

This is namespaced into Wikia\Search\Query because I imagine we're going to want to swap out Wikia\Search\QueryService\Select\Lucene to use a more direct version of the query that tolerates raw input better, since it will only be accessible internally. Since there isn't a high need for it now, that part is not yet introduced.

This teases out some of the thornier query-associated logic with Wikia\Search\Config, and addresses a bug that stripped out the namespace prefix from a user's query when displaying in the search result box.