22
33All notable changes to this ` laravel-elasticsearch ` package will be documented in this file.
44
5+ ## v5.0.5 - 2025-05-19
6+
7+ This release is compatible with Laravel 10, 11 & 12
8+
9+ ### What's Changed
10+
11+ * Merging in bug fixes by @use-the-fork in https://github.com/pdphilip/laravel-elasticsearch/pull/65
12+ * Updated outstanding tests
13+ * Fixed bug in relations` has() ` method
14+
15+ ** Full Changelog** : https://github.com/pdphilip/laravel-elasticsearch/compare/v5.0.4...v5.0.5
16+
517## v5.0.4 - 2025-04-12
618
719This release is compatible with Laravel 10, 11 & 12
@@ -58,6 +70,7 @@ People::bulkInsert([
5870]);
5971
6072
73+
6174```
6275Returns:
6376
@@ -79,6 +92,7 @@ Returns:
7992 ]
8093}
8194
95+
8296```
8397#### 2. Bug fix: ` distinct() ` aggregation now appends ` searchAfter ` key in meta
8498
@@ -115,6 +129,7 @@ with Laravel’s Eloquent. It lays a solid, future-proof foundation for everythi
115129``` json
116130"pdphilip/elasticsearch" : " ^5" ,
117131
132+
118133```
119134### Breaking Changes
120135
@@ -143,6 +158,7 @@ with Laravel’s Eloquent. It lays a solid, future-proof foundation for everythi
143158 protected $connection = 'elasticsearch';
144159 }
145160
161+
146162 ```
147163
148164#### 3. Queries
@@ -158,6 +174,7 @@ with Laravel’s Eloquent. It lays a solid, future-proof foundation for everythi
158174 Product::whereMatch('name', 'John')->get(); // match query
159175 Product::where('name', 'John')->get(); // term query
160176
177+
161178 ```
162179- ` orderByRandom() ` Removed
163180
@@ -174,6 +191,7 @@ with Laravel’s Eloquent. It lays a solid, future-proof foundation for everythi
174191 $options->minimumShouldMatch(2);
175192 })->get();
176193
194+
177195 ```
178196- Legacy Search Methods Removed
179197 All ` {xx}->search() ` methods been removed. Use ` {multi_match}->get() ` instead.
@@ -195,6 +213,7 @@ with Laravel’s Eloquent. It lays a solid, future-proof foundation for everythi
195213 - use PDPhilip\Elasticsearch\Schema\AnalyzerBlueprint;
196214 use PDPhilip\Elasticsearch\Schema\Blueprint;
197215
216+
198217 ```
199218- ` Schema::hasIndex ` has been removed. Use ` Schema::hasTable ` or ` Schema::indexExists ` instead.
200219
@@ -260,6 +279,7 @@ with Laravel’s Eloquent. It lays a solid, future-proof foundation for everythi
260279``` php
261280Connection::on('elasticsearch')->elastic()->{clientMethod}();
262281
282+
263283```
264284### What's Changed
265285
0 commit comments