Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3777

Bug in the concept search related to concept names containing stop words

    XMLWordPrintable

    Details

    • Complexity:
      Medium

      Description

      Concept names containing stop words do not show up when expected in search results.

      Steps to reproduce the problem
      1. Browse to the concept search page on the demo site.
      2. Type FAILURE, THRIVE, or FAILURE THRIVE in the search box and results including FAILURE TO THRIVE will appear below.
      3. Change the search to FAILURE TO THRIVE and the search returns zero results.
      4. Type HEPATITIS, VACCINATION, or HEPATITIS VACCINATION in the search box and results including HEPATITIS A VACCINATION will appear below.
      5. Change the search to HEPATITIS A VACCINATION and the search returns zero results.
      Observed behavior

      Exact matches to concept names containing stop words do not appear in search results for concepts.

      Expected behavior

      An exact match should always be shown as a result, regardless of whether or not the concept name contains stop words.

      This behavior was confirmed with OpenMRS 1.9.1 on demo.openmrs.org and with OpenMRS 1.10 on nightly.openmrs.org

      Fixing the problem
      1. Create a unit test (e.g., "@should match exact names containing stop words") that searches for a concept name containing a stop word by its exact name (the test should fail).
      2. Identify why concept names containing stop words are not considered matches to their exact name.
      3. Fix the problem.
      4. Ensure that the new unit test (along with all other existing unit tests) pass.

        Attachments

          Activity

            People

            Assignee:
            pmuchowski PaweĊ‚ Muchowski
            Reporter:
            mytestingpartner Tulasi Chigulla [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 30 minutes
                1d 30m