When I type nepomuksearch:/mimetype:image, or, nepomuksearch:/mimetype:pdf its work. Dolphin display all indexed pictures on first URL and all indexed pdf on second URL. But when I try to type : « nepomuksearch:/mimetype:image OR mimetype:pdf » I don't have results in Dolphin. Its a same problem when I mix mimetype with hastag or other. Reproducible: Always Steps to Reproduce: 1. Open dolphin 2. CTRL+L 3. Type « nepomuksearch:/mimetype:pdf OR mimetype:image
The query generated for "mimetype:pdf or mimetype:jpeg" is: select distinct ?r where { { ?r <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType> ?v1 . FILTER(bif:contains(?v1, "'pdf'")) . } UNION { ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#contentMimeType> ?v2 . FILTER(bif:contains(?v2, "'pdf'")) . } UNION { FILTER(bif:contains(?v1, "'jpeg'")) . } UNION { FILTER(bif:contains(?v2, "'jpeg'")) . } . } The right query must be: SELECT DISTINCT ?r WHERE { { { ?r <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType> ?v1 . FILTER(bif:contains(?v1, "'pdf'")) . } UNION { ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#contentMimeType> ?v2 . FILTER(bif:contains(?v2, "'pdf'")) . } } UNION { { ?r <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType> ?v1 . FILTER(bif:contains(?v1, "'jpeg'")) . } UNION { ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#contentMimeType> ?v2 . FILTER(bif:contains(?v2, "'jpeg'")) . } } . }
Its a same problem with AND too
Git commit aa98a806fda3eab7445e95e4de46452ffed437a9 by Vishesh Handa. Committed on 29/08/2013 at 16:03. Pushed by vhanda into branch 'KDE/4.11'. QueryLib: Remove optimizations on group terms This isn't a proper fix, but more like a temporary patch, which I should find a proper way to fix in the future. REVIEW: 111496 M +3 -3 libnepomukcore/query/querybuilderdata_p.h http://commits.kde.org/nepomuk-core/aa98a806fda3eab7445e95e4de46452ffed437a9