You are not logged in.

#1 2014-12-09 16:16:28

aurelieng
Member
Registered: 2010-02-02
Posts: 104

[KDE] Baloo: it is possible to combine several tags in a single query?

Hi all,

I'm giving a try to baloo 4.14.3-1 on KDE 4.14.3-1.

About the indexing: So far so good, simple tests works and it seems to be quite fast/last. AFAIK, it builds its indexes out of tags stored in the user.xdg.tags extended attribute of files.  Nice idea.

About the search: the tags:/ prefix in dolphin displays a list of tags on which you can click to reveal the corresponding files. Nice idea too.

Two questions still remain:
- I haven't found a way to search with tags combined with AND / OR. Is it implemented?
- are you using the search  function from dolphin? or is there a better interface around?

Thx,

Aurel.

Offline

#2 2014-12-09 16:48:53

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [KDE] Baloo: it is possible to combine several tags in a single query?

You might find some info at http://vhanda.in/blog/.

Offline

#3 2014-12-09 16:56:03

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [KDE] Baloo: it is possible to combine several tags in a single query?

In fact, he just told me on freenode #kde-baloo that complex searches are not exposed on the kioslave of KDE 4.14, on the contrary to 5.1. It seems I have to wait for KDE 5.

Offline

#4 2014-12-09 17:38:05

mar04
Member
From: Poland
Registered: 2010-02-08
Posts: 117

Re: [KDE] Baloo: it is possible to combine several tags in a single query?

I don't remember where I found it but at least following work in dolphin:
tags:/tag1&&tag2 gives union
tags:/tag1\\tag2 gives intersection

Offline

#5 2014-12-09 22:27:10

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: [KDE] Baloo: it is possible to combine several tags in a single query?

The functionality is there on KDE 5.  It's built into the Plasma 5 version of Dolphin as well.  I've tested it using -git packages from AUR.  However AFAIK it's not available on KDE 4 although I believe in the distant past there was some sort of implementation for it using a different syntax.

See http://vhanda.in/blog/2014/10/search-fo … lasma-5-1/

The neat thing is you can also combine it with ratings and such too. smile  Like you I can't wait for it to be released stable.

Offline

#6 2014-12-10 08:36:27

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [KDE] Baloo: it is possible to combine several tags in a single query?

I'm looking forward to KDE5 hitting the stable repo. In the meantime, I tested a few things and here's what I found.

Exact and partial tag matching:
* exact tag match: tags:/ fo / will only match files tagged with fo
* partial tag matching: tags:/fo/ will match files tagged with foo or foobar even if they are not tagged with fo

Search for combinations of tags:
* OR (union): tags:/tag1 tag2/ (or tags:/tag1&&tag2/ , as mentioned above)
* AND (intersection): tags:/tag1 AND tag2/
* NOT (negation): tags:/tag1 NOT tag2/

There are a a few issues with Dolphin:
* clicking on tags is not enough to refresh search results, you must either hit F5 or close the dolphin window
* there might be duplicates in results, or files that have been retagged but not updated. This might be related to old tags not being removed from the index.

Interesting stuff anyway, but far from being user-friendly yet. I hope the improvements in KDE5 will change that.

Offline

Board footer

Powered by FluxBB