Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5680 Refactor getSimilarPeople to use Lucene
  3. TRUNK-5973

Refactor getSimilarPeople to use Lucene for a search on more than 3 names

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.5.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      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 

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              fruether Fred Rue
              Reporter:
              fruether Fred Rue
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: