lesana-search - search inside a lesana collection
Contents
Copyright
2020-2021, Elena Grandi
0.10 Jan 29, 2025 LESANA-SEARCH(1)
Description
Lesana search allows one to make searches in the collection and render the results.
The section Searchsyntax in the full documentation describes the query syntax in more detail; it is
available online at https://lesana.trueelena.org/user/search.html or it may be installed on your system
(e.g. in Debian and derivatives it will be at /usr/share/doc/lesana/html/user/search.html).
By default entries are printed according to the entry_label from the settings.yaml file, but they can be
rendered according to a jinja2 template.
If no query is specified, it will default to '*', i.e. search all entries: thus lesanasearch--all will
print all entries, while just lesanasearch will print the first 12 entries, possibly according to the
relevant sorting options.
Name
lesana-search - search inside a lesana collection
Options
-h, --help
Prints an help message and exits.
--collectionCOLLECTION, -cCOLLECTION
The collection to work on. Default is .--templateTEMPLATE, -tTEMPLATE
Template to use when displaying results
--offsetOFFSET
.
--pagesizePAGESIZE
.
--all Return all available results
--sort Sort the results by a sortable field.
This option can be added multiple times; prefix the name of the field with - to reverse the
results (e.g. --sort='-date').
--expand-query-template
Render search_aliases in the query as a jinja2 template
Synopsis
lesanasearch[–help][–collectionCOLLECTION][–templateTEMPLATE]
[–offset OFFSET] [–pagesize PAGESIZE] [–all] [–expand-query-template] [–sort FIELD1 [–sort FIELD2
…]] [query [query …]]
