v3.11.0
Version 3
This major version brings a host of powerful enhancements and a significant architectural overhaul to the core query engine, transforming the way Elasticsearch queries are integrated and executed within Laravel applications.
Highlights:
Documentation
Given the expansion of this package, the documentation has moved to a dedicated site.
Core Engine Overhaul:
The centerpiece of this update, the query engine, has been completely rebuilt. This transformation shifts away from reliance on query strings to a direct integration with Elasticsearch's DSL (Domain Specific Language), unlocking a broader range of querying capabilities and a more profound integration with Elasticsearch's advanced features.
Nested Queries and Sorting:
- Nested Object Queries: Deep dive into your nested data structures with comprehensive querying support.
- Order By Nested: Enhanced sorting capabilities allow you to order search results based on fields within nested objects.
- Filter Nested Values: Apply query filters to nested data elements returning the desired matches for the data in a nested field.
New where type clauses:
- Phrase Matching: Boost your search precision with enhanced phrase matching, enabling the targeting of exact sequences within text fields.
- Exact Matching: Strengthen your search with improved exact matching capabilities, ensuring only documents that exactly match specified criteria are retrieved.
Sorting Enhancements:
- Advanced Sorting Features: Leverage Elasticsearch's native sorting features, including various sorting modes and handling of missing values.
- Geo-Distance Sorting: Sort data with geographical considerations, enabling spatially-aware application features.
Saving Enhancements:
- First Or Create: Streamline data existence checks and creation in one go, optimizing data management workflows.
- First Or Create without Refresh: Enhance performance for non-critical operations by skipping the immediate refresh. #19
Grouped Queries: Build complex queries more intuitively with the new grouped query functionality, allowing for nested conditionals within a single, organized query block.
Future-Ready Architecture
Version 3 not only enhances current functionalities but also lays a solid foundation for future expansion, especially in adopting more Elasticsearch-specific features. As Elasticsearch continues to evolve, this package is designed to adapt and incorporate new capabilities, ensuring that Laravel developers have access to the forefront of search technology.