Set search_metadata
This method will create a new heap-allocated SearchContext. It is primarily meant for low-level language bindings, to ensure correct memory management of the individual fields in the struct.