docbrown/docs/admin/admin-search.md
Alex 393ba00221
Remove Elasticsearch ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ ✂️ (#13606)
* Attempt number 1

* Fix rack_attack specs

* Fix users_searches_users spec

* Fix display_users_search_spec

* Fix comment typo

* Remove search:destroy task from cypress

* Remove port 9300 from gitpod

* Stub response in attack_spec
2021-05-03 11:09:45 -04:00

1 KiB

title
Admin Search

Admin Search

For admin views that need to take advantage of searching and filtering, we've chosen to use Ransack.

Ransack is a Ruby gem that makes searching relatively painless. It has excellent documentation, but if you're looking for an example of how it's being used on Forem, we've implemented it to help searching and sorting user reports.

The view responsible for managing user reports can be found at localhost:3000/admin/reports and Ransack can be seen in use on the index action of the admin/feedback_messages_controller.

For Forem, Ransack is being used exclusively in admin, for search problems in other parts of the app we use PostgreSQL Full Text Search.