Clicky

MLModel
Any way to limit search results to only lowercase, uppercase, or mixed case? I wanted to select all files ending in .license, lowercase, but got an awful lot of LICENSE files with installed software.
0 0
houdah
Hi!

Searches in HoudahSpot are case insensitive.

One way to do a case sensitive search is to use HoudahSpot to build a Spotlight query and then use that query with the mdfind tool at the command line in Terminal.app.

There is an undocumented feature in the HoudahSpot 4 search field that allows you to run case sensitive searches. This feature is intentionally undocumented since it is still subject to change. It also suffers from the same problem all automagical search fields share: you have to get the syntax exactly right to get the results you want. In HoudahSpot you can use Window > Raw Query to see the resulting Spotlight query. This should allow you to determine if HoudahSpot understood your search or not.

Basically, the HoudahSpot search field allows you to append Spotlight search modifiers (see the above blog post) to search values. You would search for:

filename:"*.license"d

This will search for file names ending in .license. It will ignore diacritical marks, but respect case. This will produce the following raw query:

kMDItemFSName = "*.license"d


The HoudahSpot “File Extension” criterion, which is case insensitive, produces the following raw query:

kMDItemFSName = "*.license"cd


If you leave off the modifier, the HoudahSpot search field will default to a case insensitive, diacritical mark insensitive word search. This search:

filename:"*.license"
is equivalent to this raw Spotlight query:
kMDItemFSName = "*.license"cdw



Best,

Pierre Bernard
Houdah Software s.à r.l.

Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0