Summary: | Dolphin search for a quoted phrase gives no hits | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | tagwerk19 |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ad.liu.jin, kfm-devel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
tagwerk19
2024-10-12 09:00:37 UTC
Can confirm. The search string is treated as a regular expression, so quote only matches the quote character. The rg/rga will have the same behavior as the internal search. I don't think we can make grammar in the internal search backend very close to Baloo. (unless we make them sharing the same query processor, i.e. make the internal backend a "Baloo running in unindexed mode".) So we need a decision on to what extent their grammars should match. For reference, the file manager in both GNOME (Nautilus) and COSMIC (COSMIC Files) don't support quotes. (In reply to Jin Liu from comment #1) > Can confirm. Thank you! > ... The search string is treated as a regular expression, so quote > only matches the quote character ... I think a regex is beyond what people would expect. Would you ask people to type "Letter.*Mary" in order to find "letter-to-mary.txt"? Or explain why a search for "Mar*" found "Maggie"? Of course there can/should be a flag to say "treat this is as a regex" for the Computer Science students ;-) but the normal expectation would be that you give a collection of terms (as you might in Google) and the back-end does it's best to satisfy your request. If you've quoted a phrase, then the search should be for that phrase. > ... So we need a decision on to what extent their grammars should match ... To start with, if you are putting work into the code, don't add to the divergence. Then, where possible, follow the principle of "fewest surprises". The behaviour with search terms and quotes is a very good example. > ... For reference, the file manager in both GNOME (Nautilus) and COSMIC (COSMIC Files) don't support quotes ... I know this was an aside at the bottom of the post - but the fact that we don't it because Gnome doesn't do it is a dodgy argument 8-) |