docbrown/docs/internal/internal-search.md
Andy Zhao 955bdcb2bc
Update docs with Forem instead of dev.to (#9316)
* Rename all GitHub links from thepracticaldev/dev.to to forem/forem

* Use new site name

* Rename to Forem

* Rename more dev.to to forem

* Remove unnecessary redirects

* Rename DEV to Forem

* Use Forem instead of DEV for branding

* Use Forem instead of DEV for licensing

* Use seedling instead of DEV logo
2020-07-15 13:29:11 -04:00

1,020 B

title
Internal Search

Internal Search

For internal 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/internal/reports and Ransack can be seen in use on the index action of the internal/feedback_messages_controller.

For Forem, Ransack is being used exclusively in internal, for search problems in other parts of the app we use Elasticsearch.