Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

FULLTEXT INDEX on Filenames with Underscores and Hyphens Doesn't Work as Expected #63

Open
marcus-at-localhost opened this issue Jul 5, 2022 · 1 comment

Comments

@marcus-at-localhost
Copy link
Contributor

marcus-at-localhost commented Jul 5, 2022

The search for partial strings in assets doesn't work as expected, since FULLTEXT treats filenames with underscores or hyphens as one word. Therefore, it matches the beginning of a string but not parts of it, as illustrated below:

image

image

See also: https://stackoverflow.com/questions/71016653/mysql-match-against-not-find-results-if-an-underscore-is-attached-to-the-search

Edit: after reading about the search (https://help.atrocore.com/#/atropim/user-guide/search-and-filtering?id=search) and using modifiers like % it kind of works but is not obvious to the average user. A note that modifiers are possible (depending if FULLTEXT INDEX is used or not) next to the search field or would be nice.

@rratsun
Copy link
Collaborator

rratsun commented Jul 28, 2022

We created an internal issue for this. We will solve it soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants