cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

The above code has something wrong when querying into elastic search. #140

Closed quang0212083 closed 6 years ago

quang0212083 commented 6 years ago

Hi guys, please help me. The above code has something wrong when querying into elastic search.

$model = 'Posts'; $conditions = [ 'product_name LIKE' => '%'.$keyword.'%' ]; $tbl = TypeRegistry::get($model); $query = $tbl->find()->where($conditions); return $query->toArray();

Thank so much.

ravage84 commented 6 years ago

This is not a help forum. The ticket tracker is reserved for possible bugs and feature enhancements to the CakePHP framework. If you are looking for help on how to implement a feature or to better understand how to use the framework correctly, please visit one of the following:

The CakePHP Manual The CakePHP online API CakePHP Official Forum Stackoverflow Slack channel

or the #cakephp channel on irc.freenode.net, where we will be more than happy to help answer your questions.

Thanks!