nfdi4plants/Swate

[Bug]: Improve term search functionality

Closed this issue · 2 comments

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

image

but searching for single-end as a complete term turns up no results:

image

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

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)

image