LaravelPackages.net
Acme Inc.
Toggle sidebar
mehdi89/elasticquent

Maps Laravel Eloquent models to Elasticsearch types.

1.657
0
v1.0.7
About mehdi89/elasticquent

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

Elasticquent

This fork fixed two issue of main repository . check main repo for more details.

  1. issue with elasticSearch 6+ version. Content-Type : []
  2. Allow to pass raw json query. example:
$jsonQuery = '{
  "query": {
    "bool": {
      "must": [
        { "match": { "transcription":"'.$keyword.'" }},
        { "match": { "userID": '.$userid.' }}
      ]
    }
  }
}';
$audios = Audio::searchByQuery($jsonQuery);
Comments