Skip to content

Commit 85291c0

Browse files
committed
Release 4.0.1
1 parent ae8e030 commit 85291c0

File tree

1 file changed

+31
-18
lines changed

1 file changed

+31
-18
lines changed

README.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
This package extends Laravel's Eloquent model and query builder with seamless integration of Elasticsearch functionalities. Designed to feel native to Laravel, this package enables you to work with Eloquent models while leveraging the
1111
powerful search and analytics capabilities of Elasticsearch.
1212

13-
#### Using [OpenSearch](https://opensearch.pdphilip.com/)? [Github](https://github.com/pdphilip/laravel-opensearch)
14-
1513
```php
1614
$logs = UserLog::where('type', UserLogType::LOGIN)->where('created_at','>=',Carbon::now()->subDays(30))->get();
1715
```
1816

1917
### Read the [Documentation](https://elasticsearch.pdphilip.com/)
20-
18+
---
19+
> #### Using [OpenSearch](https://opensearch.pdphilip.com/)? [Github](https://github.com/pdphilip/laravel-opensearch)
2120
---
2221

2322
## Installation
@@ -137,6 +136,17 @@ ES_INDEX_PREFIX=my_app
137136

138137
### 3. If packages are not autoloaded, add the service provider:
139138

139+
For **Laravel 11**:
140+
141+
```php
142+
//bootstrap/providers.php
143+
<?php
144+
return [
145+
App\Providers\AppServiceProvider::class,
146+
PDPhilip\Elasticsearch\ElasticServiceProvider::class,
147+
];
148+
```
149+
140150
For **Laravel 10 and below**:
141151

142152
```php
@@ -149,17 +159,6 @@ For **Laravel 10 and below**:
149159

150160
```
151161

152-
For **Laravel 11**:
153-
154-
```php
155-
//bootstrap/providers.php
156-
<?php
157-
return [
158-
App\Providers\AppServiceProvider::class,
159-
PDPhilip\Elasticsearch\ElasticServiceProvider::class,
160-
];
161-
```
162-
163162
Now, you're all set to use Elasticsearch with Laravel as if it were native to the framework.
164163

165164
---
@@ -181,7 +180,7 @@ Now, you're all set to use Elasticsearch with Laravel as if it were native to th
181180
- [Distinct and GroupBy](https://elasticsearch.pdphilip.com/distinct)
182181
- [Aggregations](https://elasticsearch.pdphilip.com/aggregation)
183182
- [Chunking](https://elasticsearch.pdphilip.com/chunking)
184-
- [Nested Queries](https://elasticsearch.pdphilip.com/nested-queries) **New in Version 3**
183+
- [Nested Queries](https://elasticsearch.pdphilip.com/nested-queries)
185184
- [Elasticsearch Specific Queries](https://elasticsearch.pdphilip.com/es-specific)
186185
- [Full-Text Search](https://elasticsearch.pdphilip.com/full-text-search)
187186
- [Dynamic Indices](https://elasticsearch.pdphilip.com/dynamic-indices)
@@ -196,14 +195,28 @@ Now, you're all set to use Elasticsearch with Laravel as if it were native to th
196195
- [Migrations](https://elasticsearch.pdphilip.com/migrations)
197196
- [Re-indexing Process](https://elasticsearch.pdphilip.com/re-indexing)
198197

198+
## Misc
199+
200+
- [Handling Errors](https://elasticsearch.pdphilip.com/handling-errors)
201+
202+
---
203+
204+
# New in Version 4
205+
206+
(and 3.9.1/3.8.1)
207+
208+
- [Search Highlighting](https://elasticsearch.pdphilip.com/full-text-search#highlighting)
209+
- [whereTimestamp()](https://elasticsearch.pdphilip.com/es-specific#where-timestamp)
210+
- [Raw Aggregation](https://elasticsearch.pdphilip.com/es-specific#raw-aggregation-queries)
211+
- [Updated Error Handling](https://elasticsearch.pdphilip.com/handling-errors)
212+
- [Chunk Upgrade: Point In Time (PIT)](https://elasticsearch.pdphilip.com/chunking#chunking-under-the-hood-pit)
213+
199214
---
200215

201216
# New in Version 3
202217

203218
### Nested Queries [(see)](https://elasticsearch.pdphilip.com/nested-queries)
204219

205-
This update introduces support for querying, sorting and filtering nested data
206-
207220
- [Nested Object Queries](https://elasticsearch.pdphilip.com/nested-queries#where-nested-object)
208221
- [Order By Nested](https://elasticsearch.pdphilip.com/nested-queries#order-by-nested-field)
209222
- [Filter Nested Values](https://elasticsearch.pdphilip.com/nested-queries#filtering-nested-values): Filters nested values of the parent collection
@@ -229,4 +242,4 @@ This update introduces support for querying, sorting and filtering nested data
229242

230243
- [Grouped Queries](https://elasticsearch.pdphilip.com/querying-models#grouped-queries): Queries can be grouped allowing multiple conditions to be nested within a single query block.
231244

232-
---
245+
---

0 commit comments

Comments
 (0)