This fork fixed two issue of main repository . check main repo for more details.
- issue with elasticSearch 6+ version. Content-Type : []
- Allow to pass raw json query. example:
$jsonQuery = '{
"query": {
"bool": {
"must": [
{ "match": { "transcription":"'.$keyword.'" }},
{ "match": { "userID": '.$userid.' }}
]
}
}
}';
$audios = Audio::searchByQuery($jsonQuery);