https://github-wiki-see.page/m/babenkoivan/elastic-scout-driver-plus/wiki/Paginated-Resources Here you have a simple BookResource : class BookResource extends JsonResource { /** * @param Request $request * @return array */ public function toArray($request): array { return [ 'id' => $this->id, 'title' => $this->title, 'description' => $this->description, 'isbn' => $this->isbn ]; } } Below you can see a simple paginated search on the title or description of the book. The paginated results is then sent to the BookResource collection. class BookController extends Controller { public function search(BookSearchRequest $request) { $search = Book::boolSearch(); $search->must('multi_match', [ 'type' => 'phrase', 'query' => $request->input('search'), 'fields' => ['title^3', 'description'] ]); // Paginate $books = $search->paginate(10); // Important to make BookResource aware of the paginated collection $books->setCollection($books->models()); // If you want to append current query string to links and meta data generated by the Paginator $books->appends($request->query()); return BookResource::collection($books); } } //------------------------------------------------------------------------------------------------- https://bestofphp.com/repo/babenkoivan-elastic-scout-driver [ 'multi_match' => [ 'query' => $queryText, 'type' => 'cross_fields', 'operator' => 'and', 'fields' => ['*'] ], ]; //------------------------------------------------------------------------------------------------ https://programmierfrage.com/items/laravel-elasticsearch-babenkoivan-elastic-adapter-model-relation !!! //------------------------------------------------------------------------------------------------ http://172.16.251.200:9200/channels/_mapping //------------------------------------------------------------------------------------------------ https://bytemeta.vip/repo/babenkoivan/elastic-scout-driver-plus/issues/82 //------------------------------------------------------------------------------------------------ { "properties": { "order": { "type": "text", "fielddata": true } } } curl -X PUT -H "Content-Type: application/json" \ -d '{"properties": {"format": { "type":"text","fielddata": true}}}' \ :9200//_mapping //----------------------------------------------------------------------------------------------------