Details
-
Sub-task
-
Status: Closed
-
Should
-
Resolution: Fixed
-
None
-
None
-
None
-
Medium
Description
Inside the code is an else block that deals with searches that have more than three names as arguments e. g. n1, n2, n3 and n4. Right now this block does not use Lucene but rather the legacy code which is setting up an SQL Statement. Have a look to the following line: https://github.com/openmrs/openmrs-core/blob/640cd7dd47f65c02574458f4b25d8b114aa817ed/api/src/main/java/org/openmrs/api/db/hibernate/HibernatePersonDAO.java#L134
The goal is to refactor this else block to use Lucene to find the names. This was already done to the previous if conditions.
Talk discussion: https://talk.openmrs.org/t/soundex-search-in-lucenequeries/26068