Database persistence for search documents.
Implements ISearchStore using next.jdbc + HoneySQL for DML and raw parameterized SQL for FTS-specific queries.
Strategies chosen by the adapter's capabilities (ADR-039):
Database persistence for search documents. Implements ISearchStore using next.jdbc + HoneySQL for DML and raw parameterized SQL for FTS-specific queries. Strategies chosen by the adapter's capabilities (ADR-039): - :full-text — to_tsvector/plainto_tsquery + ts_rank + ts_headline, and pg_trgm suggestions where it is installed; without it, a LOWER/LIKE fallback - :on-conflict — INSERT … ON CONFLICT DO UPDATE; without it, delete and insert in one transaction
(create-search-store datasource adapter)Create a SearchStore backed by a JDBC datasource.
Args: datasource - javax.sql.DataSource adapter - the database's DBAdapter; its :full-text and :on-conflict capabilities choose the query and upsert strategies
Returns: SearchStore implementing ISearchStore
Create a SearchStore backed by a JDBC datasource.
Args:
datasource - javax.sql.DataSource
adapter - the database's DBAdapter; its :full-text and :on-conflict
capabilities choose the query and upsert strategies
Returns:
SearchStore implementing ISearchStorecljdoc 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 |