I have a workflow in mind where (1) I upload a set of photos to perkeep as 
permanodes, then (2) tag the photos to keep them organized. I'd like to 
search for all untagged permanodes (i.e. permanodes where the tag attribute 
does not exist), but I can't seem to figure out how to do it.

My approach is to use a raw query modeled off of this bit of logic I found 
in perkeep code: 
https://github.com/perkeep/perkeep/blob/f2e7add71bf7d7fdc0d8d8060171e41c238e166a/app/scanningcabinet/datastore.go#L618-L642

The idea is to find the negation of the set of all permanodes that have at 
least one nonempty tag attribute. This is the JSON I'm using to find all 
tagged permanodes, which seems to work:

```
raw:{"permanode":{"attr": "tag", "valueMatches":{"ByteLength":{"Min":1}}}}
```

However, when I try to negate it like so, I don't seem to get any blobs at 
all:

```
raw:{"op":"not","a":{"permanode":{"attr": 
"tag","skipHidden":true,"valueMatches":{"ByteLength":{"Min":1}}}}}
```

Is there something I'm doing wrong? I'd appreciate any hints or feedback.

Thanks,

--Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Perkeep" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/perkeep/f099283d-0fb1-42a1-a4b8-d9f3cb8497d3n%40googlegroups.com.

Reply via email to