We've started working on this ticket again, and have some questions. These are our impressions – correct us if we're wrong:
Current behavior:
- 3+ chars: prefix match only – OK, this is desired behavior
- 2 chars: currently exact match only, but prefix match desired (search "ab" will display "Test Ab Smith" but not "Test Ablonious Smith") – NOT OK, needs fix
- 1 char: exact match only (exact match desired) – OK
Possible optimizations:
- changing minSearchCharacters to 2 will give the desired functionality above.
- 2 chars: prioritize: display exact match first then prefix (e.g. search = "xy", show "Xy Jones" before "Xyza Jones")
- 1 char: prioritize: exact match first, then prefix (e.g. search = "a", show "Test A Last" before "Test Ab Last")
- Should we do prioritization on 1, 2, and 3+ chars, as described above?
- There is no substring match EVER, it’s just prefix match (e.g. searching "etty" will never find "Betty," but "Bet" will find "Betty"). Would substring match be desirable, maybe as an option?
--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.