Summary: | Baloosearch search syntax confusion | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-baloo | Reporter: | tagwerk19 |
Component: | general | Assignee: | Stefan Brüns <stefan.bruens> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 5.78.0 | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
tagwerk19
2021-01-23 18:12:35 UTC
You have to use proper quotes on the command line: $> baloosearch tag:\"Blue Tag\" Although looking similar, "dolphin tags:..." and "baloosearch tags:..." are two completely different things, the first one is a URL of the tags kioslave, the second one is a query for the "tags" property. (In reply to Stefan Brüns from comment #1) > You have to use proper quotes on the command line: > > $> baloosearch tag:\"Blue Tag\" Ah! Thanks. baloosearch tags:\"Blue Tag\" baloosearch 'tags:"Blue Tag"' work - and indeed typing tags:"Blue Tag" works in Krunner (whereas tags:'Blue Tag' returns the same hits as tags:Blue Tag). The questions are: How can anyone find this out? I've previously looked for search syntax documentation/specs but not really come up with anything. Is there any way that baloosearch can treat single and double quotes as equivalent? It seems a particularly obscure trap for young players. > Although looking similar, "dolphin tags:..." and "baloosearch tags:..." are > two completely different things, the first one is a URL of the tags > kioslave, the second one is a query for the "tags" property. My assumption is, right at the bottom of the stack, baloosearch and the tags slave are doing the same work (for this query). The trouble relates to "how to quote phrases" and "how the code handles escaped quotes". If I'm completely offbase here, apologies. Having looked at Krunner... tags:"Blue Tag" gives the expected hits, but 'locations' gives go to tags:%22Blue Tag%22 which does not work. This is, I think, a bug... |