BiologicalRecordsCentre / ABLE

Assessing ButterfLies in Europe project repository
2 stars 3 forks source link

use of # character within ElasticSearch page search #353

Open DavidRoy opened 3 years ago

DavidRoy commented 3 years ago

@johnvanbreda Is the '#' (hash) character, restricted within searches. this is used to structure comments e.g. "#DINP:oedippus.C" to easily identify samples within a certain project. Searching for # does not work in ElasticSearch pages, e.g. https://butterfly-monitoring.net/elastic/all-records

johnvanbreda commented 3 years ago

This may reflect the fact that we don't store the parent sample's comments in the Elasticsearch document - just the sample directly linked to the occurrence. Is this worth adding then @DavidRoy ?

DavidRoy commented 3 years ago

@johnvanbreda yes please

johnvanbreda commented 3 years ago

OK, will do. I just tested the search on a local install and it does work, but you need to wrap it in double quotes:

"DINP:oedippus.C"