Skip to content

Commit 78cd6cb

Browse files
authored
[Fix] Limit complex Search inside a index.
Limit complex Search inside a index. PR elasticquent#102
1 parent 65b1785 commit 78cd6cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ElasticquentTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ public static function searchByQuery($query = null, $aggregations = null, $sourc
259259
public static function complexSearch($params)
260260
{
261261
$instance = new static;
262+
263+
$basicParams = $instance->getBasicEsParams();
264+
$params = array_merge($params, $basicParams);
262265

263266
$result = $instance->getElasticSearchClient()->search($params);
264267

0 commit comments

Comments
 (0)