usaybia / srophe-eXist-app

eXist code for Syriaca.org: The Syriac Reference Portal
GNU General Public License v3.0
1 stars 0 forks source link

Searches with diacritics return no results in REST API #81

Closed nathangibson closed 3 years ago

nathangibson commented 3 years ago

Correct:

No results:

Suggested solution: The simplest might be to simply substitute / strip out diacritics and return results for the equivalent expression without diacritics. You're doing something similar already in the eXist search. E.g. ḥ > h, ī > i. Do you need a list? You probably don't yet have the Arabic script ones?

wsalesky commented 3 years ago

@nathangibson Thanks! I will research, these should strip diacritics already as it is using the full text search. I suspect it may have something to do with the wildcard I tacked onto the end of the search term. Let me do some testing, but I suspect that is the answer.

nathangibson commented 3 years ago

Related #82

wsalesky commented 3 years ago

Can be closed when pull request has been reviewed and accepted.

nathangibson commented 3 years ago

Thanks!