Bug 494673 - Regression: Quoted Dolphin searches forget quotes
Summary: Regression: Quoted Dolphin searches forget quotes
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-13 15:23 UTC by tagwerk19
Modified: 2025-01-23 11:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tagwerk19 2024-10-13 15:23:09 UTC
SUMMARY:
    If you quote the phrase to search for an exact phrase rather than all the words
    (using the Baloo index). Dolphin allows you to type "Just this" and gives you
    the hits with the exact match however when you press return Dolphin strips the
    quotes and returns the hits with all words.

STEPS TO REPRODUCE:
1...
    Make sure Baloo is running and indexing your test folder

2...
    Create a couple of test files:
        $ echo "Just this" > letter-to-mary.txt
        $ echo "Just want to say this" > letter-to-agatha.txt

3...
    Open Dolphin search, choose "Content" rather than "Filename" and
    type, with double quotes, "Just this" and check the results. Then press return.

OBSERVED RESULT:
    The search for "Just this", as you are typing, gives you just the letter-to-mary.txt
    (as it is an exact match)

    When you press return, you get both the letter-to-mary.txt and letter-to-agatha.txt

    You will see the search string "as used" displayed the Dolphin title change
    from '"Just this"' to 'Just this', the results switch from matching the phrase to
    matching all the words

EXPECTED RESULT:
    If the search string is quoted, it stays quoted.

SOFTWARE/OS VERSIONS:
    Neon Unstable
    Dolphin: 24.11.70
    Plasma: 6.1.90
    Frameworks: 6.7.0
    Qt: 6.7.2

ADDITIONAL INFORMATION:
    This affects Baloo searches as Dolphin's internal search does not find quoted phrases
    (See Bug 494584)

    Note that single quotes round the phrase are kept, it is only the double quotes that
    are lost, and also it only fails with "Content" search, not if you have selected
    "Filename".
Comment 1 tagwerk19 2024-10-14 15:46:48 UTC
Checking back through old .iso's, it seems this behaviour changed between
    neon-testing-20240102-0250.iso
and
    neon-testing-20240130-0309.iso

The latter lets you type
    "Just this
giving you the "letter-to-mary.txt", when you complete the phrase
    "Just this"
the quotes are stripped from the search string. When you then type return you are given both the "letter-to-mary.txt" and the "letter-to-agatha.txt"
Comment 2 TraceyC 2024-11-04 22:02:22 UTC
I've confirmed this behavior on git-master