Skip to content

How to test type ahead suggestions

Martha Thompson edited this page Feb 5, 2019 · 2 revisions

The suggestions that appear automatically when a searcher begins typing are pulled from the sayt_suggestions table. That table can be populated by the usasearch:sayt_suggestions rake task, which calculates popular searches based on logstash data. To test without logstash data:

  1. Create an affiliate with Type-Ahead Search enabled: https://search.gov/manual/display-overview.html#modules
  2. Create a suggestion for your test affiliate with a popularity of at least 10: /admin/sayt_suggestions.

You should see that suggestion appear automatically when you begin typing that string in the search box of your affiliate.