varfish-org / viguno

Versatile Interface for Genetics Utilization of Nice Ontologies
Apache License 2.0
0 stars 0 forks source link

HPO name search breaks with colon in string #159

Closed stolpeo closed 2 months ago

stolpeo commented 3 months ago

Describe the bug The name search returns a 500 error when the string contains a :. It seems to interpret the first part of the string up to the : as a field.

## Input: "HP:"
curl 'http://localhost:8000/proxy/varfish/viguno/hpo/terms?name=HP%3A'
Error parsing query: Syntax Error: HP: 
## Input: "HP:00"
curl 'http://localhost:8000/proxy/varfish/viguno/hpo/terms?name=HP%3A00'
Error parsing query: Field does not exist: 'HP'
stolpeo commented 3 months ago

Actually I don't know if it is intended to also search by term id, but the error is strange anyway.

holtgrewe commented 2 months ago

The full-text search engine interprets this in the query. Will be fixed in #173.