pub struct SearchConfig {
pub text: Vec<String>,
pub facets: Vec<String>,
pub sortable: Vec<String>,
pub language: Option<String>,
}Expand description
Storage-side alias for pylon_kernel::ManifestSearchConfig. The
shape lives in the kernel because the manifest is what every layer
reads (runtime, storage, router all share it). We re-export here
so storage callers don’t have to double-import.
Per-entity search declaration. Lives on the manifest so both the
storage layer (schema push) and the runtime (write-time maintenance
- query endpoints) read the same shape.
Kept in pylon-kernel intentionally — other crates depend on kernel
but not on each other, so this is the only place every layer can
agree on the config surface.
Fields§
§text: Vec<String>§facets: Vec<String>§sortable: Vec<String>§language: Option<String>Tokenizer language for the FTS index (Postgres to_tsvector /
plainto_tsquery config). Only the names Postgres ships in
pg_ts_config are valid: english, spanish, german,
french, simple, etc. SQLite ignores the field — its FTS5
virtual table uses unicode61 remove_diacritics 2 regardless,
which is language-agnostic. Defaults to english so existing
manifests don’t change behavior.
Implementations§
Trait Implementations§
Source§impl Clone for ManifestSearchConfig
impl Clone for ManifestSearchConfig
Source§fn clone(&self) -> ManifestSearchConfig
fn clone(&self) -> ManifestSearchConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more