icaruseu / mom-ca

Monasterium.net (http://www.monasterium.net/mom) - repository and collaborative archive
https://github.com/icaruseu/mom-ca/wiki
GNU General Public License v3.0
17 stars 11 forks source link

prefix-style in `@key` (`prefix:value`) entries cannot be searched #1055

Open GVogeler opened 2 years ago

GVogeler commented 2 years ago

<persName>, <orgName> and <placeName> can carry @key attributes referencing controlled vocabularies. They're often built with a prefix or full URIs, e.g. wikidata:Q165561. As Lucene treats the : as separator between field identifier and value the search form cannot use the plain version but would have to mask it \:. This is confusing for users, so it might be an idea to add the masking during preprocessing of the query in XQuery.

GVogeler commented 2 years ago

The given search string from the example can be searched with "wikidata:Q165561" - which might be an alternative approach to recommend to users in the search description.