Created
December 20, 2016 07:17
-
-
Save kossgreim/ff7dd581e0fa8825732d85ac2bac7211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$params = [ | |
'index' => 'registrations', | |
'type' => 'event_db', | |
'body' => [ | |
'query' => [ | |
'bool' => [ | |
'filter'=>[ | |
[ | |
'query_string' => [ | |
'query' => $str, | |
'fields'=> ['name', 'lastName', 'email', 'ticket_codes', 'ticket_hashes', 'accessCode'] | |
], | |
], | |
[ | |
'term' => [ | |
'event_id' => 'ev_' . $event->id | |
] | |
] | |
] | |
], | |
], | |
] | |
]; | |
return $this->_client->search($params); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment