BerkeAras / WorkGroup

Self-Hosted private Social Media-Intranet for Companies.

Home Page:https://workgroup.berkearas.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: Search does not work properly

BerkeAras opened this issue · comments

Expected Behavior

Search for something, see result.

Actual Behavior

Error: SQLSTATE[HY000]: General error: 1191 Can't find FULLTEXT index matching the column list (SQL: select `users`.`id`, `users`.`email`, `users`.`name`, `user_information`.`user_department` from `users` left join `user_information` on `users`.`id` = `user_information`.`user_id` where `users`.`email` like %Test% or `users`.`email` = SOUNDS LIKE or `users`.`name` like %Test% or `users`.`name` = SOUNDS LIKE or MATCH (users.name) AGAINST (\"+Test\" IN BOOLEAN MODE) or `user_information`.`user_department` like %Test% or `user_information`.`user_department` = SOUNDS LIKE or MATCH (user_information.user_department) AGAINST (\"+Test\" IN BOOLEAN MODE) or `users`.`id` = Test limit 4)

Steps to Reproduce the Problem

  1. Search for something
  2. See issue

Critical Bug?

  • Yes
  • No

More Information

https://github.com/BerkeAras/WorkGroup-API/blob/62cbda68304baf5e742be04bd29b3cd5c147dee6/app/Http/Controllers/SearchController.php#L25-L38