We recently upgraded to OpenMRS version 1.12 from 1.7. We noticed an issue when searching for concepts using the page under Admin > View Concept Dictionary. When searching for concepts that contain underscores in the name, the search does not return the correct results. For example, a concept with a name of Test_test, if I type in Test_, it will show up in the list, but if I type in Test_t, it does not show up in the list. This used to work in our previous version of OpenMRS, but does not appear to work with the LuceneQuery.
David Ely
Software Developer
Children’s Health Services Research
IU School of Medicine
Phone: 317-278-1642
Email: davely@iu.edu
@david5780, thanks for posting the issue. It’s possible that underscore is interpreted differently by Lucene. I don’t think the behavior for interpreting underscore was documented anywhere in OpenMRS so we didn’t consider that edge case when migrating to Lucene.
Is it an actual issue for your implementation? Do you have concepts with underscores in your production database?
Please create an issue for openmrs-core (TRUNK project in JIRA) and link it here.