Pure Hiccup UI components for the search Admin interface.
All functions are pure — they receive data and return Hiccup structures. No side effects, no I/O, no logging.
Components: field-weight-badge — weight indicator (A/B/C/D) search-result-row — single result row search-results-fragment — HTMX results area indices-page — list all registered indices (full page) index-detail-page — index config + live search test form (full page)
Pure Hiccup UI components for the search Admin interface. All functions are pure — they receive data and return Hiccup structures. No side effects, no I/O, no logging. Components: field-weight-badge — weight indicator (A/B/C/D) search-result-row — single result row search-results-fragment — HTMX results area indices-page — list all registered indices (full page) index-detail-page — index config + live search test form (full page)
(field-weight-badge weight)Render a field weight label as a colored badge.
Render a field weight label as a colored badge.
(index-detail-page index-info results query opts)Render the search index detail page with live search test form.
Args: index-info - map: {:id :entity-type :language :fields :doc-count} results - SearchResponse map or nil (shown when a search was performed) query - string (previous search query, for repopulating the form) opts - map with :user, :flash (passed to page-layout)
Render the search index detail page with live search test form.
Args:
index-info - map: {:id :entity-type :language :fields :doc-count}
results - SearchResponse map or nil (shown when a search was performed)
query - string (previous search query, for repopulating the form)
opts - map with :user, :flash (passed to page-layout)(indices-page indices opts)Render the search indices admin list page.
Args: indices - vector of index info maps: {:id :entity-type :language :fields :doc-count} opts - map with :user, :flash (passed to page-layout)
Render the search indices admin list page.
Args:
indices - vector of index info maps: {:id :entity-type :language :fields :doc-count}
opts - map with :user, :flash (passed to page-layout)(search-result-row {:keys [entity-type entity-id rank snippet metadata]})Render a single search result row.
Render a single search result row.
(search-results-fragment results query total took-ms)Render the HTMX search results area (replaces #search-results).
Args: results - vector of SearchResult maps query - string (displayed in header) total - integer (total matching docs) took-ms - integer (query time)
Render the HTMX search results area (replaces #search-results). Args: results - vector of SearchResult maps query - string (displayed in header) total - integer (total matching docs) took-ms - integer (query time)
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |