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

    • Sub-task
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • Core 2.5.0
    • 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 

      Gliffy Diagrams

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: