Skip to main content

Module admin_ffi

Module admin_ffi 

Source
Expand description

JSON-based FFI surface for admin-plane operations that need richer serde shapes than a flat string list.

Pack P7.6a introduces this module so the Python and TypeScript SDKs can register recursive FTS property schemas via the engine’s Engine::register_fts_property_schema_with_entries entry point. The types are plain serde structures — no pyo3 / napi dependencies — so translation can be unit- and integration-tested directly via cargo test without linking against libpython or libnode, mirroring the pattern established by crate::search_ffi.

Structs§

PyPropertyPathSpec
A single registered property-FTS path with its extraction mode.
PyRegisterFtsPropertySchemaRequest
JSON envelope for register_fts_property_schema_with_entries_json.

Enums§

AdminFfiError
Error produced by the admin FFI JSON translation path.
PyPropertyPathMode
Extraction mode for a single registered FTS property path, serialized as "scalar" or "recursive" on the wire.

Functions§

get_fts_profile_json
Retrieve the FTS tokenizer profile for a node kind.
get_vec_profile_json
Retrieve the vector embedding profile for a specific node kind.
preview_projection_impact_json
Estimate the cost of rebuilding a projection for a given node kind and facet.
register_fts_property_schema_with_entries_json
Register (or update) an FTS property projection schema whose entries may include recursive-mode paths. The request_json payload must match PyRegisterFtsPropertySchemaRequest.
set_fts_profile_json
Set the FTS tokenizer profile for a node kind.
set_vec_profile_json
Set (or update) the global vector embedding profile.