Skip to main content

spatial_insert

Function spatial_insert 

Source
pub fn spatial_insert<S: StorageEngine>(
    engine: &LiteQueryEngine<S>,
    collection: &str,
    field: &str,
    surrogate: Surrogate,
    geometry: &Geometry,
) -> Result<QueryResult, LiteError>
Expand description

SpatialOp::Insert — index a geometry for a document surrogate.

The surrogate is used as the stable doc ID string, matching the hex-encoded key that Origin uses so that cross-engine prefilter bitmap intersects work without translation.