You can now scope a query to a folder. $startsWith on $key selects every
document whose key begins with a prefix — --filter '$key: { $startsWith: notes/ }'
on the CLI, the same shape in the iwe_query MCP tool — so searches and
retrievals can be pointed at one part of the store instead of all of it. The
prefix is matched as plain text, so write the trailing / when you mean the
directory alone.
iwe
Added
--filter '$key: { $startsWith: notes/ }'selects documents by key prefix. The prefix is a case-sensitive string, not a path segment, sonotesalso matches the hub notenotesand a sibling directory likenotes-archive/; write the trailing separator to mean the directory alone.
iwec
Added
iwe_queryaccepts$startsWithon$key—{ $key: { $startsWith: notes/ } }selects documents by key prefix.
Library crates (liwe, diwe)
liwe
Added
KeyOp::StartsWith—$key: { $startsWith: notes/ }matches documents whose key begins with the given prefix. The operand is normalized as a key, so a trailing.md/.djis stripped, and the test is a case-sensitive string prefix rather than a path-segment match. An empty prefix is a parse error.
Fixed
- A malformed
$keyexpression now reports the operators it accepts instead of the tautological "$keypredicates are not allowed inside$key".