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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManifestSearchConfig
impl Debug for ManifestSearchConfig
Source§impl Default for ManifestSearchConfig
impl Default for ManifestSearchConfig
Source§fn default() -> ManifestSearchConfig
fn default() -> ManifestSearchConfig
Source§impl<'de> Deserialize<'de> for ManifestSearchConfig
impl<'de> Deserialize<'de> for ManifestSearchConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ManifestSearchConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ManifestSearchConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ManifestSearchConfig
impl PartialEq for ManifestSearchConfig
Source§fn eq(&self, other: &ManifestSearchConfig) -> bool
fn eq(&self, other: &ManifestSearchConfig) -> bool
self and other values to be equal, and is used by ==.