search

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(db bun.IDB) http.HandlerFunc

Handler finds notes by title or content: GET /api/search?q=&max_length=&untagged=&updated_before=&tags_all=&tags_any= &tags_none=&folder=&not_text=&empty_sections=&limit=&offset=, X-Total-Count counting the matches. @Summary Find notes by title or content @Description The text in the title first, then in a heading, then the notes with the most backlinks, the latest edited, by path. @Tags search @Produce json @Param q query string false "text to find, may be left out with another filter" @Param max_length query integer false "only the notes whose content (title line included) has at most that many characters" @Param untagged query boolean false "only the notes with no tag" @Param empty_sections query boolean false "only the notes with a heading followed by nothing up to a heading of its level or higher, or the end; each match lists them" @Param updated_before query string false "only the notes last changed before this day (2026-01-31) or RFC 3339 instant, the oldest first without q" @Param tags_all query []string false "only the notes carrying every one of these tag ids" collectionFormat(multi) @Param tags_any query []string false "only the notes carrying at least one of these tag ids: Idée AND (Cuisine OR Boisson) is tags_all Idée and tags_any Cuisine, Boisson" collectionFormat(multi) @Param tags_none query []string false "only the notes carrying none of these tag ids" collectionFormat(multi) @Param folder query string false "only the notes of this folder uuid, in its subfolders too" @Param not_text query string false "only the notes whose title and content do not hold this text, whatever its case" @Param limit query integer false "matches in the page, all when left out or 0" @Param offset query integer false "matches skipped before the page" @Success 200 {array} searchnotes.Match @Header 200 {integer} X-Total-Count "the matches, not only the page: those read, and the notes after them that may match" @Failure 400 {object} respond.Failure @Failure 500 {object} respond.Failure @Router /api/search [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL