mehdi89/elasticquent

Maps Laravel Eloquent models to Elasticsearch types.

v1.0.7 2018-06-10 19:08 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:59:41 UTC


README

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);