This package extends Laravel's Eloquent model and query builder with seamless integration of Elasticsearch functionalities. Designed to feel native to Laravel, this plugin enables you to work with Eloquent models while leveraging the powerful search and analytics capabilities of Elasticsearch.
forked from pdphilip/laravel-elasticsearch
Read the Documentation
Please note: Only version 3 of the package will be maintained.
Laravel 11.x (main):
composer require pdphilip/elasticsearch
Next, Configuration
- The Base Model
- Querying Models
- Saving Models
- Deleting Models
- Ordering and Pagination
- Distinct and GroupBy
- Aggregations
- Chunking
- Elasticsearch Specific Queries
- Full-Text Search
- Dynamic Indices
Nested Queries (see)
This update introduces support for querying, sorting and filtering nested data
- Nested Object Queries
- Order By Nested
- Filter Nested Values: Filters nested values of the parent collection
- Phrase Matching: The enhancement in phrase matching capabilities allows for refined search precision, facilitating the targeting of exact word sequences within textual fields, thus improving search specificity and relevance.
- Exact Matching: Strengthening exact match queries enables more stringent search criteria, ensuring the retrieval of documents that precisely align with specified parameters.
- Ordering with ES features: Includes modes and missing values for sorting fields.
- Order by Geo Distance
- Grouped Queries: Queries can be grouped allowing multiple conditions to be nested within a single query block.