Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about Elastic fuzziness feature #563

Open
mkhattat opened this issue Oct 24, 2023 · 1 comment
Open

Question about Elastic fuzziness feature #563

mkhattat opened this issue Oct 24, 2023 · 1 comment
Assignees
Labels

Comments

@mkhattat
Copy link

I know that the developers of Snostorm decided not to have the fuzziness in the Snomed search API. I read the reason behind it in a different issue. I respect that.

But I have a case that I still need to show relevant results even if there is a spelling error. For example, searching for concepts with the query alzimer should still show the Alzheimer disease term.

Do you have any suggestion how can I achieve this in Snomed?

@kaicode
Copy link
Member

kaicode commented Nov 2, 2023

I can suggest a workaround for now: Snowstorm Lite has fuzzy matching. Enable it by including a tilde character at the end of the ValueSet filter search string.

For example: /fhir/ValueSet/$expand?url=http://snomed.info/sct?fhir_vs=ecl/%3C%3C404684003|Clinical%20finding|&count=20&filter=alzimer~

Non-production demo server here: https://snowstorm-lite.nw.r.appspot.com/fhir/ValueSet/$expand?url=http://snomed.info/sct?fhir_vs=ecl/%3C%3C404684003|Clinical%20finding|&count=20&filter=alzimer~

.. Lucene based search often takes around 20 times longer with fuzzy matching compared to without. I would suggest running search without fuzzy matching first and if there are no results then perhaps automatically run a fuzzy search?

@kaicode kaicode self-assigned this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants