openmrs/openmrs-core — pull request #863 by haychris (2014-04-11 21:50:55+00:00)
Title: TRUNK-3780 Searching for patient with patient name/new feature

https://issues.openmrs.org/browse/TRUNK-3780
These are our minimal possible changes to fix this. We tested in the webapp and minSearchCharacters (in Administration/Advanced Settings) was indeed now 2, allowing 2-character prefix search as requested. If this change is alright, then we will also add more comprehensive tests.

Possible optimizations could be: prioritizing exact match listed before prefix match before substring match, allowing user to choose between exact/prefix/substring match, or phonetic match.

How does that sound?

- Christopher Hay and Katherine Ye