title: Query Directives
role: manual
tags: #manual #search #zettelstore
syntax: zmk
back: 00001007700000 00001007770000
backward: 00001007700000 00001007770000
box-number: 1
copyright: (c) 2020-present by Detlef Stern <ds@zettelstore.de>
created: 20230707203135
forward: 00001007720300 00001007720500 00001007720600 00001007720900 00001007721200
lang: en
license: EUPL-1.2-or-later
modified: 20251215164814
published: 20251215164814
visibility: public

A query directive transforms a list of zettel identifiers into a list of zettel identifiers.
It is only valid if a list of zettel identifiers is specified at the beginning of the query expression.
Otherwise the text of the directive is interpreted as a search expression.
For example, `CONTEXT` is interpreted as a full-text search for the word &ldquo;context&rdquo;.

Every query directive therefore consumes a list of zettel, and it produces a list of zettel according to the specific directive.

* [Context directive](00001007720300)
* [Thread Directive](00001007720500)
* [Ident directive](00001007720600)
* [Items directive](00001007720900)
* [Unlinked directive](00001007721200)