apps/server/src/assets/llm/skills/search_syntax.md
rings tolkien — notes containing both words"The Lord of the Rings" — exact phrase match#book — notes with the "book" label#!book — notes WITHOUT the "book" label#publicationYear = 1954 — exact value#genre *=* fan — contains substring#title =* The — starts with#title *= Rings — ends with#publicationYear >= 1950 — numeric comparison (>, >=, <, <=)#dateNote >= TODAY-30 — date keywords: NOW+-seconds, TODAY+-days, MONTH+-months, YEAR+-years#phone %= '\d{3}-\d{4}' — regex match#title ~= trilim — fuzzy exact match (tolerates typos, min 3 chars)#content ~* progra — fuzzy contains match~author — notes with an "author" relation~author.title *=* Tolkien — relation target's title contains "Tolkien"~author.relations.son.title = 'Christopher Tolkien' — deep relation traversalAccess via note. prefix: noteId, title, type, mime, text, content, rawContent, dateCreated, dateModified, isProtected, isArchived, parentCount, childrenCount, attributeCount, labelCount, relationCount, contentSize, revisionCount.
note.type = code AND note.mime = 'application/json'note.content *=* searchTermnote.parents.title = 'Books' — parent named "Books"note.ancestors.title = 'Books' — any ancestor named "Books"note.children.title = 'sub-note' — child named "sub-note"#book AND #fantasy (implicit between adjacent expressions)#book OR #authornot(note.ancestors.title = 'Tolkien')(#genre = "fantasy" AND #year >= 1950) OR #awardtowers #book — full-text "towers" AND has #book labeltolkien #book or #author — full-text with OR on labels#author=Tolkien orderBy #publicationDate desc, note.title limit 10\#hash — literal # in full-text