pub fn search_directory(
query: String,
facets_json: String,
) -> Result<Value, String>Expand description
Faceted + concept-aware search over the directory. query is meaning-aware (a token expands across a
concept cluster, so “doctor” finds a “clinician”); facets_json is a JSON object of
{facet_id: [selected values]} (AND across facets, OR within). Returns ranked entries + drill-down
facet counts. Both empty → the whole directory with all facet counts.