Skip to content

Tags: aobozhang/laravel-scout-elastic

Tags

3.0.8

Removed count function. Fixes ErickTamayo#80 (ErickTamayo#84)

Since php 7.2, count a number will generate a warning. Because
$results['hits']['total'] is a number we can just compare it to zero.

`if ($results['hits']['total'] === 0)`

2.0.1

Fixed error in readme config example (ErickTamayo#83)

3.0.7

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Enable Laravel5.5 package Auto-Discovery (ErickTamayo#81)

3.0.6

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Execute the callback that can be passed to the Builder in performSear…

…ch (ErickTamayo#56)

Context: laravel/scout#111

Implementation analogical to the official AlgoliaEngine implementation: https://github.com/laravel/scout/blob/v3.0.3/src/Engines/AlgoliaEngine.php#L112-L119

3.0.5

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Support for "WHERE IN" searches if array is passed to `where` (ErickT…

…amayo#55)

Right now passing an array results in: "illegal_state_exception: Can't get text on a START_ARRAY"
Solution based on http://stackoverflow.com/a/40737488/7362396

3.0.4

chain `values` method in `map` function (ErickTamayo#66)

In 
```php
    collect($results['hits']['hits'])->map(function ($hit) use ($model, $models) {
            return isset($models[$hit['_id']]) ? $models[$hit['_id']] : null;
        })->filter();
```
would generate some holds which would cause `paginate` results objects rather than list.

3.0.3

Update ElasticsearchProvider.php (ErickTamayo#54)

use `app` instead of `resolve` to make lumen 5.4 compatible.

`app` and `resolve` are identical since 5.4, see https://github.com/laravel/framework/blob/5.4/src/Illuminate/Foundation/helpers.php#L690

3.0.2

v3.0.2

bumping to php 5.6.6 (Earliest version that can support php elasticsearch) (ErickTamayo#48)
`within` now is being taken into account when specified ErickTamayo#31
Now if the record is not found on the db will not throw undefined offset ErickTamayo#36
Implemented orderBy ErickTamayo#46

3.0.1


    

3.0.0