mehdi89 / elasticquent
Maps Laravel Eloquent models to Elasticsearch types.
Installs: 1 657
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 394
pkg:composer/mehdi89/elasticquent
Requires
- php: >=5.4.0
- elasticsearch/elasticsearch: ~6.0
- illuminate/config: ~4.2|^5
- illuminate/database: ~4.2|^5
- nesbot/carbon: ~1.0
Requires (Dev)
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ~4.2|~5.0
This package is not auto-updated.
Last update: 2025-12-16 10:33:27 UTC
README
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);