https://bugs.kde.org/show_bug.cgi?id=386257

            Bug ID: 386257
           Summary: Provide a method of storing and parsing relative dates
           Product: frameworks-baloo
           Version: 5.39.0
          Platform: Neon Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: pinak.ah...@gmail.com
          Reporter: pointedst...@zoho.com
  Target Milestone: ---

Right now Baloo search strings are stored encoded and evaluate to something
like this:

baloosearch:?json={
    "dayFilter: 0,
    includeFolder: "/home/dev",
    "monthFilter: 0,
    "searchString: "modified>=2017-10-01 filename:\"foo%\",
    "term: {
        "$and: [
            {
                "modified: {
                    "$gte: "2017-10-01"
                }
            },
            {
                "filename: {
                    "$ct: "foo"
                }
            }
        ]
    },
    "yearFilter: 0
}
title=Query Results from 'foo'


Note the use of absolute dates. This becomes problematic when a Baloo URL is
used as the basis for a saved search in Dolphin. With the above query, results
from October will returned even once it's November and beyond.

Baloo should provide a means of storing and parsing relative dates so that
Dolphin can use them and call up saved searches with date filters relative to
the current date.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to