Tell me, who is well acquainted with Yii2, is it possible using ActiveSearch to implement a search by keyword. I have found only this way so far, but I don’t really like it:
// Получаем названи таблиц $couponsTable = Coupons::tableName(); $clubProfileTable = ClubProfile::tableName(); // Поиск по ключевому слову $query->andFilterWhere([ 'like', 'concat(' . "`$couponsTable`.title, `$couponsTable`.description, " . "`$clubProfileTable`.city, `$clubProfileTable`.address" . ')', $this->keyword ]);
ActiveSearchentity. In the framework, there are ORMs for Sphinx Search and Elasticsearch , which are inherited from the baseBaseActiveRecord, and you can also use DBAL / Query builder instead of ORMActiveRecord. While I see that you use stupidly "LIKE", and preferably full-text search. What is your RDBMS, MySQL? - romeo