Hi,
Here's a use case for the search feature we're having troubles dealing with:
We have various files, say to store numerous norm documents. Their titles have the following format: "NF Z65-130.pdf".
Searching through titles using the FULLTEXT operator gives unsatisfying results since dashes (-) are stripped down from the query (see NXQLQueryBuilder.sanitizeFulltextInput) (1) ; so searching "Z65-130" (even with the double dashes) will eventually be translated as query documents that contain either "Z65" or "130", which will return a lot of results.
The more appropriate operator seems to be LIKE, except it requires the use of the % operator as the wildcard, which is not user-friendly (depending on the field, users would have to use either * or %).
Is there any approach that would allow queries to match user expectations when they simply type "Z60-130" or "*Z60-130*"?
Thanks for your help
(1) This seems to also occur when dc:title is removed from default-repository-config.xml, i.e. when NXQL queries fall back from FULLTEXT 'query' to LIKE '%query%'.