Page 1 of 1

0.99.7: Quick Search is case sensitive on categories

Posted: Tue Apr 05, 2022 11:19 am
by jadO
I don't think this is how it should be:

Search with Quick Search is not case sensitive on file names but it is case sensitive on category names.

So a search for 'wedding' finds 'wedding', 'Wedding' and WEDDING when it is in a filename, but it does not find it when name of the assigned category is 'Wedding' or 'WEDDING'.

I think it should not be case sensitive.

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Sat Apr 09, 2022 11:56 am
by helmut
I've tried to reproduce your problem but I'm not clear how I can apply "Quick search" on categories. I have a category with 89 files and when I enter a filename in Quick search and XnView filters by that filename correctly. I guess this is not what you mean. Could you please provide some more detail? A screenshot might also help.

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Sat Apr 09, 2022 3:38 pm
by jadO
helmut wrote: Sat Apr 09, 2022 11:56 amCould you please provide some more detail?
Ok, I try to explain more:

To enable Quick Search on categories go to Settings -> Browser -> Tab Quick Search and enable the checkbox where it says Categories (catalog).
Now Quick Search also displays files where the name of the assigned category matches the Quick Search.

Now try:

1. Have 3 test files. First 2 name 'Test' and 'test'. Name of third file can be any name but should not contain 'test' or 'Test'
2. Make a category 'Test' and assign it to third file.
3. If you now type 'test' into Quick Search only first 2 files will show up -> Quick Search in filename not case sensitive
4. If you now type 'Test' into Quick Search all 3 files should show up -> Quick Search in categories is case sensitive

I think all 3 files should also show up if I type 'test'.

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Sat Apr 09, 2022 7:47 pm
by helmut
Thank you for an even more detailed description, jadO. I succeeded in reproducing your problem. ATM, Quick search is indeed case sensitive for categories. :bugconfirmed:

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Mon Apr 11, 2022 1:39 pm
by xnview
i can't reproduce, i have always 3 files

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Mon Apr 11, 2022 8:34 pm
by helmut
xnview wrote: Mon Apr 11, 2022 1:39 pm i can't reproduce, i have always 3 files
Hmm, this problem is simple to reproduce so I'm surprised you couldn't. Did you really assign a category "Test" and then tried Quick search with "test"?

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Mon Apr 11, 2022 8:54 pm
by michel038
... and avoid having same IPTC Keywords as categories, because search on keywords is NOT case sensitive ...

Easier for tests : > disable "IPTC fields" in settings, quick search

So I can reproduce

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Tue Apr 12, 2022 6:49 am
by xnview
michel038 wrote: Mon Apr 11, 2022 8:54 pm ... and avoid having same IPTC Keywords as categories, because search on keywords is NOT case sensitive ...

Easier for tests : > disable "IPTC fields" in settings, quick search

So I can reproduce
:shock: it works always here, could you send me 3 files to test?

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Wed Apr 13, 2022 8:33 am
by michel038
If the objective is to demonstrate that the search is case sensitive on categories, it is sufficient to take any two images.
Give the category XYZ to the first one, and xYz to the second.
If export categories to iptc is checked, disable quick search on IPTC fields

The quick search xyz gives nothing
The quick search XYZ finds the picture 1
The quick search xYz finds the picture 2

Re: 0.99.7: Quick Search is case sensitive on categories

Posted: Mon Apr 25, 2022 8:33 am
by xnview
Please check Beta 4

Re: 0.99.7: Quick Search is case sensitive on categories [solved]

Posted: Tue Aug 30, 2022 2:10 pm
by michel038
Sorry, I had forgotten this post
Solved since ... (don't know) , thank you Pierre !


For all
- Quick search is effective only on files currently displayed in the browser (use recursive view if necessary)
- The settings are in Settings>Browser>Quick search
- And we can use "regex" syntax
If you have the categories : Family , famous for example
Quick search :
ami : containing ami
^fam : starting with fam (or Fam)
ous$ : ending with ous
ami|amo : containing ami or amo
etc...