Support autocompletion of suggestions for valid operators - T1455
Open, Needs TriagePublic

Description

As a user writing a search query
I can write keywords and operators
In order to create valid query.

Scenario 1

Given i have a keyword list and a operator list :

KEYWORDOPERATOR
receiveris
Date>,<,=
AND,OR

When i write "receiver John", the suggestion "receiver is John" appear and if i press enter.
Then the query "receiver is John" is written.

Scenario 2

Given i have a keyword list and a operator list :

KEYWORDOPERATOR
receiveris
Date>,<,=
AND,OR

When i write "receiver John Date>2016/03/18", a list suggestion appear

"receiver is John" AND "Date>2016/03/18"
"receiver is John" OR "Date>2016/03/18"

and if i press enter the first suggestion is selected
Then the query "receiver is John" AND "Date>2016/03/18" is written.

Scenario 3

Given i have a keyword list and a operator list :

KEYWORDOPERATOR
receiveris
Date>,<,=
AND,OR

When i write "receiver John Date 2016/03/18", a suggestion list appear :

"receiver is John" AND "Date>2016/03/18"
"receiver is John" AND "Date<2016/03/18"
"receiver is John" AND "Date=2016/03/18"
"receiver is John" OR "Date>2016/03/18"
"receiver is John" OR "Date<2016/03/18"
"receiver is John" OR "Date=2016/03/18"

and if i press enter the first suggestion is selected
Then the query "receiver is John" AND "Date>2016/03/18" is written.

hrouis created this task.Mar 10 2016, 4:05 PM
grebois updated the task description. (Show Details)Mar 15 2016, 4:33 PM
grebois updated the task description. (Show Details)Mar 15 2016, 5:10 PM
grebois updated the task description. (Show Details)Mar 15 2016, 5:12 PM
grebois updated the task description. (Show Details)Mar 15 2016, 5:21 PM

I'm not so sure if multiple ways to enter values support learnability. I mean when "John's emails from last two weeks" (cf. #T1453) or "John 08/15" and "Sender=John AND time>08/15" is all the same how are users supposed to learn it?
About this particular item, I wonder how to update the proposal later from for instance "Date>2016..." to ""Date<2016...".
And the idea to offer all operators might also lead to an usuable state. Take the example "receiver John Date 2016/03/18" and add more criteria to increase the complexity.

grebois moved this task from Maturation to Ready on the KDE PIM: KMail board.Mar 18 2016, 6:22 PM