CakePHP-ElasticSearchIndex icon indicating copy to clipboard operation
CakePHP-ElasticSearchIndex copied to clipboard

Typo on ElasticSearchIndexableBehavior class

Open xtrembaker opened this issue 9 years ago • 0 comments

Hello,

I've implemented your Plugin (thanks and good job by the way). However, I think I found an issue. On method ElasticSearchIndexableBehavior::search() On line 511 : $foundIds = $this->esSearchGetKeys($Model, $q = '', $findIndexOptions);

Why are you redefining $q to an empty string ($q = '') ? This break the asked search and would return anything. When I remove the assignment and keep passing the variable as is ($q), everything works as expected.

Thanks by advance !

xtrembaker avatar Jul 27 '16 09:07 xtrembaker