From d28edcff274c03ad7cf221a2007ade1406d0f07c Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 18 Feb 2021 22:50:10 +0100 Subject: [PATCH] Updated Search (markdown) --- Search.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Search.md b/Search.md index 88596bc..57e4626 100644 --- a/Search.md +++ b/Search.md @@ -94,6 +94,16 @@ Example above will do the following things (in this sequence): 1. in case publication date is equal, use note.title as secondary ordering in ascending order (`asc` is the default and thus can be ommitted) 3. take only the first 10 results +### Negation + +Some queries can be expressed only with negation: + +``` +#book AND not(note.ancestor.title = 'Tolkien') +``` + +This will find all the book notes which are not in the "Tolkien" subtree. + ## Under the hood ### Label and relation shortcuts