pub async fn create_search_engine(
config: &SearchConfig,
repo: Arc<PGConnection>,
migrations: bool,
) -> Result<Arc<SearchEngineBackend>, OperationOutcomeError>Expand description
Builds the engine config describes, against repo.
migrations says whether this process is allowed to change the index’s
shape. The indexing worker only ever writes documents, so it passes false
and never prunes a mapping out from under the server.
§Errors
Returns an error if the backend cannot be reached or configured.