[Bug]: Improve term search functionality
Closed this issue · 2 comments
shiltemann commented
Contact Details
No response
What happened?
When searching ontology terms in ARCitect , the search results are sometimes suboptimal.
Example:
- searching for
single
turns up a result titled single-end - but if we had entered the entire term
single-end
no results show up
Screenshots
searching for single
turns up a single-end
result
but searching for single-end
as a complete term turns up no results:
What did you expect?
No response
Host
Applies to All
Host Details
- OS: Ubuntu 22.04
- ARCitect version: v0.0.40
Swate version
ARCitect v0.0.40
Freymaurer commented
I looked into this issue and found the problem. I use cypher full text search to query the database on term names. This full text search supports apache lucene syntax and a -
is interpret as "MUST not contain the following". I added logic to escape all apache lucene special characters now, which solves this issue 👍 Will be live with the next release (somewhen today)
Freymaurer commented