Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $q = $request->input('q');
- $response = $client->search([
- 'index' => 'users',
- 'type' => 'user',
- 'body' => [
- 'query' => [
- 'bool' => [
- 'should' => [
- ['match' => [ 'text' => $q ] ],
- ],
- ],
- ],
- ],
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement