OpenConceptLab / ocl_issues

Issues for all OCL repos. NOTE: Install ZenHub Browser Extension and request access to the OCL Roadmap board to view all issues and to contribute
4 stars 1 forks source link

Fuzzy search result formatting - slight adjustment #1937

Open jamlung-ri opened 20 hours ago

jamlung-ri commented 20 hours ago

We heard in the OpenMRS Squad call today that Ellen got two OCL search results confused (see screenshot), since their formatting looks exactly the same but clearly the top concept is a better match than the second concept. The first concept is more of an exact match, whereas the second concept is more of a fuzzy, inexact match.

@paulsonder suggested that the highlighting could be more accurate; there doesn’t seem any need to highlight the W, for example.

@snyaggarwal Would it be possible to make is to there is partial formatting for matching characters only? In this example, only "arburg" would be bolded on that second result in the screenshot, rather than the whole word "Warburg". This is something that I imagine can carry over to v3.

Screenshot: image

snyaggarwal commented 3 hours ago

@jamlung-ri I will check on the possibility of this, right now its completely driven from ElasticSearch highlights