title: Query: Search Expression
role: manual
tags: #manual #search #zettelstore
syntax: zmk
back: 00001007700000 00001007720300 00001007720500 00001007720600 00001007770000
backward: 00001007700000 00001007720300 00001007720500 00001007720600 00001007770000
box-number: 1
copyright: (c) 2020-present by Detlef Stern <ds@zettelstore.de>
created: 20230707205043
forward: 00001006010000 00001007702000 00001007705000 00001007706000
lang: en
license: EUPL-1.2-or-later
modified: 20250102210324
published: 20250102210324
visibility: public

In its simplest form, a search expression just contains a string to be searched for with the help of a full-text search.
For example, the string `syntax` will search for all zettel containing the word &ldquo;syntax&rdquo;.

If you want to search for all zettel with a title containing the word &ldquo;syntax&rdquo;, you must specify `title:syntax`.
&ldquo;title&rdquo; denotes the [metadata key](00001006010000), in this case the [supported metadata key &ldquo;title&rdquo;](00001006020000#title).
The colon character (&ldquo;`:`&rdquo;) is a [search operator](00001007705000), in this example to specify a match.
&ldquo;syntax&rdquo; is the [search value](00001007706000) that must match to the value of the given metadata key, here &ldquo;title&rdquo;.

A search expression may contain more than one search term, such as `title:syntax`.
Search terms must be separated by one or more space characters, for example `title:syntax title:search`.
All terms of a select expression must be true so that a zettel is selected.

Above sequence of search expressions may be combined by specifying the keyword `OR`.
At most one of those sequences must be true so that a zettel is selected.

* [Search term](00001007702000)
* [Search operator](00001007705000)
* [Search value](00001007706000)