Retrieve Raw Elasticsearch Data
Hi! I have problem getting the data. the available methods such as: searchQuery($query)->execute()->hint(); searchQuery($query)->execute()->models(); searchQuery($query)->execute()->documents();
Do not provide a way to retrieve the raw data array as it appears in the content when calling searchQuery($query)->execute()->documents();. It could be great to have the same features than execute()->documents(): public function toArray(): array { return $this->content; } instead of public function toArray(): array { return [ 'id' => $this->id, 'content' => $this->content, ]; }
Hi @miyake-123, do I understand correctly that you want to retrieve only the content of all documents? You can do it as follows: searchQuery($query)->execute()->documents()->map->content().
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days