barisusakli / nodebb-plugin-dbsearch

A plugin that uses the database for search
16 stars 24 forks source link

fix: broken chat search on redis #68

Closed julianlam closed 1 year ago

julianlam commented 1 year ago

Redisearch docs indicate that whatever is passed in is evaluated against index data. Therefore, even if uid is passed in and is falsy, it is still evaluated and does not match any indexed data.

This commit updates the roomId and uid properties so that they must be arrays containing items, similarly to how the postgres method handles values.