Search Query Syntax

I’ve just noticed a problem that I think is new when searching for tagA but not tagB. After “tagA’ is entered, the appropriate records are selected and displayed. But after adding just “-” or after adding “-[text that is not a tag]” the yellow screen indicating an empty search is displayed. What am I doing wrong?

I’m not 100% sure what you’re trying to do, but if you’re doing an Anywhere search, I think you would want something like:

tag:tagA tag:-tagB text

to find records with tagA but not tagB and containing “text”.

I’m having the same problem with Tag and Anywhere searches.
This came up because I am trying to combine two tags (call them TagA and TagB) into one tag (Call it TagC).
In a Smart Folder, I’ve selected records with either TagA or TagB, and added TagC to each record.

Then I wanted to be sure that all records with TagA or TagB really were tagged with TagC.
So I searched for records with TagA and wanted to find those that did not have TagC.
I did this by typing TagA in the search box, and then started to type in -TagC.
The yellow empty search list appeared as soon as I typed “-“ and this continued as I completed the entry of TagC.

My worry is that I’m not getting a good search ofd TagA -TagC because I’m getting a null match result whatever I type after the “-”.
Shouldn’t the files with TagA continue to be displayed after I type “-“ until I finish typing a valid tag?

I think this is new — didn’t notice it before, at least.

I don’t think the way this searching works has changed recently. Doing a Tags search for:

TagA -TagC

should do what you want. I just tested it here.

If you search for:

TagA -

that will find records that have TagA and any tag containing a -.

Isn’t a “-“ a Boolean “not”?
In a tag search, TagA -TagB yields records taggedA and not taggedB.
And in an anywhere search, tag:TagA tag:-TagB yields the same results.

But TagA -NonexistentTag yields a negative search, which doesn’t seem logical, since there are no records tagged with the nonexistent tag.

What am I missing?

Just to confirm, this a totally separate question from what you were asking before?

I think you’ve found a bug. It should work as you expect if Match Partial Words is checked, but if it’s unchecked and you type a negative non-existent tag name it will always report no matches.

No — it’s the same question — I just improved my description in successive communications.

OK, in any event I think this should be fixed in the next beta.