search
Search Plugin
Section titled “Search Plugin”Full-text search with PostgreSQL FTS and MeiliSearch. Free: MIT licensed.
Install
Section titled “Install”nself plugin install searchWhat It Does
Section titled “What It Does”Adds full-text search to your ɳSelf backend with two engines: built-in PostgreSQL FTS for simple search, and MeiliSearch for typo-tolerant, faceted search. Provides an index management API to define which Postgres tables and columns to index, and a unified search API that queries either engine.
Configuration
Section titled “Configuration”| Env Var | Default | Description |
|---|---|---|
SEARCH_PORT | 3302 | Search service port |
SEARCH_ENGINE | meilisearch | Engine: meilisearch or postgres |
SEARCH_AUTO_INDEX | true | Auto-index on data changes |
MEILISEARCH_HOST | http://meilisearch:7700 | MeiliSearch endpoint |
MEILISEARCH_MASTER_KEY | none | MeiliSearch master key |
| Port | Purpose |
|---|---|
| 3302 | Search service REST API |
| 7700 | MeiliSearch (if SEARCH_ENGINE=meilisearch) |
Database Tables
Section titled “Database Tables”5 tables added to your Postgres database:
np_search_indices: index definitionsnp_search_index_fields: indexed fields per indexnp_search_documents: cached document storenp_search_queries: query analyticsnp_search_synonyms: search synonym mappings
Nginx Routes
Section titled “Nginx Routes”| Route | Target |
|---|---|
/search/ | Search API |
GET /health: Health checkPOST /indices: Create an indexPOST /indices/{name}/sync: Sync Postgres table to indexGET /search?q={query}: Search across all indicesGET /search/{index}?q= — Search a specific index