Closed
Description
Looking at MeiliSearchService->search()
it requires an ObjectManager
.
While i do get the idea behind it, there should be a way to call the raw results without getting the entities from the database, something like this:
public function searchRaw(
string $className,
string $query = '',
array $requestOptions = []
): array {
$this->assertIsSearchable($className);
return $this->engine->search($query, $this->searchableAs($className), $requestOptions);
}
Performance-wise its faster getting the data directly from MS than waiting for the "real" entities from MySQL.
What do you think?