Skip to main content

stringify_facet

Function stringify_facet 

Source
pub fn stringify_facet(value: &Value) -> Option<String>
Expand description

Coerce a JSON value into the canonical string used as a facet bitmap key (SQLite) or facet equality value (Postgres). Numbers drop trailing zeros so 4.50 and 4.5 map to the same value; nulls + complex types become None so they don’t get a bucket.