Maps Laravel Eloquent models to Elasticsearch types.
mehdi89/elasticquent is a Laravel package for maps laravel eloquent models to elasticsearch types..
It currently has 0 GitHub stars and 1.657 downloads on Packagist (latest version v1.0.7).
Install it with composer require mehdi89/elasticquent.
Discover more Laravel packages by mehdi89
or browse all Laravel packages to compare alternatives.
Last updated
This fork fixed two issue of main repository . check main repo for more details.
$jsonQuery = '{
"query": {
"bool": {
"must": [
{ "match": { "transcription":"'.$keyword.'" }},
{ "match": { "userID": '.$userid.' }}
]
}
}
}';
$audios = Audio::searchByQuery($jsonQuery);