Liking cljdoc? Tell your friends :D

boundary.search.core.ui

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)
raw docstring

field-weight-badgeclj

(field-weight-badge weight)

Render a field weight label as a colored badge.

Render a field weight label as a colored badge.
sourceraw docstring

index-detail-pageclj

(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)
sourceraw docstring

indices-pageclj

(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)
sourceraw docstring

search-result-rowclj

(search-result-row {:keys [entity-type entity-id rank snippet metadata]})

Render a single search result row.

Render a single search result row.
sourceraw docstring

search-results-fragmentclj

(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)
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close