0.99.7: Quick Search is case sensitive on categories

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

0.99.7: Quick Search is case sensitive on categories

Post 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.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.99.7: Quick Search is case sensitive on categories

Post 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.
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: 0.99.7: Quick Search is case sensitive on categories

Post 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'.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.99.7: Quick Search is case sensitive on categories

Post 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:
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.99.7: Quick Search is case sensitive on categories

Post by xnview »

i can't reproduce, i have always 3 files
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: 0.99.7: Quick Search is case sensitive on categories

Post 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"?
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: 0.99.7: Quick Search is case sensitive on categories

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.99.7: Quick Search is case sensitive on categories

Post 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?
Pierre.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: 0.99.7: Quick Search is case sensitive on categories

Post 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
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.99.7: Quick Search is case sensitive on categories

Post by xnview »

Please check Beta 4
Pierre.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

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

Post 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...
Post Reply