CakePHP-ElasticSearchIndex
CakePHP-ElasticSearchIndex copied to clipboard
Typo on ElasticSearchIndexableBehavior class
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 !