Skip to content

Releases: ShisunXia/Laravel-Elasticsearch-Query-Builder

Add script as an option to the 'sum' function

03 Sep 19:28
Compare
Choose a tag to compare

Added script as the 4th parameter to the 'sum' function. Now, it is possible to perform more complexed operations on the sum function. For example, we can do the following:
Item::es()->aggregate('Value', function($q) {
$q->sum('', null, null, ['source' => 'doc.price.value * doc.quantity.value'])->groupBy('status');
})->get()->aggregations();

Prevent delete() from throwing 404 exception

19 Nov 22:11
Compare
Choose a tag to compare

Fixed a bug related to orWhere

13 Nov 19:53
Compare
Choose a tag to compare
v1.0.1

fixed a bug regarding to orWhere

First version

09 Nov 18:05
Compare
Choose a tag to compare
v1.0.0

add documentation for scroll