dimagi/commcare-hq — pull request #4408 by esoergel (2014-09-26 21:33:55+00:00)
Title: Fall back to infix search on basic queries

http://manage.dimagi.com/default.asp?134017
If query does not use the ES query string syntax default to doing an infix search for each term.

Also change the default behavior to AND multiple search terms rather than OR. This will make a query of "Jamie Lannister" not match "Tywin Lannister".