1.12.3: Search “Folder contains” only matches end of folder name (catalog)

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

mudo
Posts: 1
Joined: Sat Nov 21, 2026 12:04 am

1.12.3: Search “Folder contains” only matches end of folder name (catalog)

Post by mudo »

XnView MP 1.12.3, Windows 11 64-bit

Search dialog, “Search in: Catalog”, subfolders enabled.
Condition “Folder contains X” only finds files if X is at the END of the folder name.

Example (folder is in catalog, visible in Settings > Catalog > Maintenance):
D:\Photos\2020\Trip - Berlin, Hamburg\

“Folder contains Hamburg” → files found
“Folder contains Berlin” → 0 files found

Wildcards (Berlin, %Berlin%) don’t help. “Update catalog from files” on the folder doesn’t help.
A catalog base path is set (parent folder of all photos).
jkm
Posts: 754
Joined: Sat May 11, 2024 12:43 am

Re: 1.12.3: Search “Folder contains” only matches end of folder name (catalog)

Post by jkm »

Welcome to the forums...

I tested, and the functionality you describe functions correctly.

Perhaps you have made a mistake in the search dialog. For the conditions you seem to propose, the FOLDER field (the 2nd entry field in the search dialog, right below FILENAME) should be empty. If it is not, you are restricting your search, which could cause results to differ from what you expect. The "Search in subfolders" option is only germane if the FOLDER field is not empty. Note that when you invoke the search dialog, its normal behavior is to auto-populate the folder field with whatever folder you are currently browsing; so you would need to remove that before executing your search when you don't want the search restricted to a certain tree.

Secondly, why have you set a catalog base path? Setting that parameter is only necessary in extremely specific circumstances; normally you should leave it alone. Improper setting of that parameter can cause problems.

Please try your search again, with the dialog filled out correctly: Search in Catalog, and NONE of the other checkboxes checked and nothing in the filename/folder fields. Just Folder name contains Berlin in the conditions area below.

If you are still having problems, post screenshots of the search dialog and Settings:Catalog:Maintenance

Hopefully this helps...