Document body: search prefix

This commit is contained in:
arne 2025-11-22 18:30:49 +01:00
commit 9f7ad0c304

View file

@ -520,11 +520,6 @@
(if (= 1 n-displayed)
" match"
" matches")))))]
[:section.search-form
[search {:query query}]
[loading-indicator {:loading loading}]
#_(cond (= api-state :loading) " …"
(= api-state :error) " API Error!")]
[:section.buttons
[:button.control-button {:on-click fetch-more-posts! :disabled (boolean (seq loading))} "⇓ Fetch more"]
[:button.control-button {:on-click disconnect-account!} "▤ Disconnect account"]]]
@ -561,6 +556,7 @@
[:li [:code "\"for (this|that)\""] " will match \"for this\" and \"for that\"."]]]
[:li "Terms can be prefixed to change default behavior:"
[:ul
[:li [:code "body:term"] " will return results that have a fuzzy match for \"term\" anywhere in the post body or in any image or video description."]
[:li "Date prefixes can be used to restrict a date range for your results. Dates are meant to be given like "
[:code "2025-11-22"] " / " [:code "YYYY-MM-DD"] ", but month and day are optional."
[:ul