| Summary: | Problem with nepomuksearch:/ OR and AND, don't return results in Dolphin / Konqueror / kioclient ls command line | ||
|---|---|---|---|
| Product: | [Unmaintained] nepomuk | Reporter: | Aristide <fmetton> |
| Component: | kioslave - nepomuksearch | Assignee: | Nepomuk Bugs Coordination <nepomuk-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bruno, kde |
| Priority: | NOR | ||
| Version First Reported In: | 4.10.2 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/nepomuk-core/aa98a806fda3eab7445e95e4de46452ffed437a9 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Aristide
2013-05-06 07:53:55 UTC
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 |