Permalink
Browse files

bugfix: complex search return all indexes and types, not the

current model
  • Loading branch information...
tongjishi
tongjishi committed May 24, 2016
1 parent 89083c1 commit 73b0c2a90f3d55edf6deb62f79ebaa5e4d3d26d5
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/ElasticquentTrait.php
@@ -259,6 +259,8 @@ public static function searchByQuery($query = null, $aggregations = null, $sourc
public static function complexSearch($params)
{
$instance = new static;
$params['index'] = $instance->getIndexName();
$params['type'] = $instance->getTypeName();
$result = $instance->getElasticSearchClient()->search($params);

0 comments on commit 73b0c2a

Please sign in to comment.