wish: ledger quicksearch match multiple terms with OR/AND

Bug #1824469 reported by TonyIT
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HomeBank
Won't Fix
Undecided
Maxime DOYEN

Bug Description

Hi Maxime

It's possible to modify the behaviour of the filter in the ledger in order to search with the AND condition?

Imagine to have "A B C" and "A C B", if you need to search both of this strings you have to write the exact sequence of the chars.
With an AND condition, instead, the search will be much easier: ["A" [space] "B"] will be translate in
'SELECT * FROM the-ledger WHERE almost-every-field LIKE "*A*" AND almost-every-field LIKE "*B*"'

If someone disagree, a choice in the preference can do the trick:
    [X] in the ledger, filter with an AND condition

That would make the job a lot easier.

Grazie e ciao.
TonyIT

Tags: usability
Revision history for this message
TonyIT (nc8430) wrote :
Maxime DOYEN (mdoyen)
Changed in homebank:
importance: Undecided → Wishlist
Maxime DOYEN (mdoyen)
summary: - filter in the ledger
+ wish: ledger quicksearch with AND instead of OR
Maxime DOYEN (mdoyen)
tags: added: usability
Revision history for this message
Maxime DOYEN (mdoyen) wrote : Re: wish: ledger quicksearch with AND instead of OR

after a little study on how others do this, I decided to think to the gmail behaviour

Search for an exact word or phrase with " " (which is the actual behaviour in HB)
=> "dinner tonight"
=> will only match this exact phrase

What you want is to enable OR for multiple words
Search match multiple terms with OR
=> "amy OR david"
=> will match any txn that match amy or david

source: https://support.google.com/mail/answer/7190?hl=en

summary: - wish: ledger quicksearch with AND instead of OR
+ wish: ledger quicksearch match multiple terms with OR
Changed in homebank:
status: New → Incomplete
Revision history for this message
TonyIT (nc8430) wrote : Re: wish: ledger quicksearch match multiple terms with OR

I got your point but you missed the AND I'm searching for.

some example:
"uno due tre"
"uno tre due"
"due tre uno"
"uno tre quattro"
"uno quattro tre"

I need to search only the records containing the words "uno" and the word "quattro", so:

=> uno OR quattro > all the records [NOT what I wish]
=> "uno quattro" > only the last
=> uno AND quattro > the last two [That's Sound Good!] <= <=

Grazie mille.
Tony

Maxime DOYEN (mdoyen)
summary: - wish: ledger quicksearch match multiple terms with OR
+ wish: ledger quicksearch match multiple terms with OR/AND
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Incomplete → New
Maxime DOYEN (mdoyen)
Changed in homebank:
status: New → Confirmed
assignee: nobody → Maxime DOYEN (mdoyen)
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Confirmed → New
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

no one else seem to need this so I close.

Changed in homebank:
importance: Wishlist → Undecided
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.