techquity/elexible

Elastic Search package for Laravel.

dev-master 2019-11-08 12:32 UTC

This package is auto-updated.

Last update: 2021-06-19 22:05:32 UTC


README

IN DEVELOPMENT

Elexible

Query Elastic Search and retain your Eloquent relations, eager loading capabilities and more.

Elastic Models

Each Elastic model defines the mapping properties for its data, rulesets for common requests (search, aggregations and suggestions) whilst extending the Eloquent model and retaining all the usual model interactions.

class ElasticModel extends \Techquity\Elexible\Model {}

Search Query

Suggest Query

Model::suggest()->where($field, $prefix)->get();