Popular Query Suggestions#
Profiles: Project Creator, Search User
Squirro can suggest queries to the user that have been used in a previous search.
While typing in a query, the matching query suggestions are suggested to the user as autocompletion with the suggested queries ranked on popularity and relevance.
The more often a query was used, the higher the popularity score.
Search users will see this by default when they begin typing a query in the search bar. Project creators can tune the settings for the popular query suggestions.
Note
You must set up Activity Tracking to use the Popular Query Suggestions feature.
Example#
In the example shown below, the top two suggestions are popular queries. The next suggestions in the list are content-based key phrase suggestions, followed by the suggestions for communities.
Popular Query Setup#
The diagram below depicts the conceptual data flow when a user enters a query:
Frontend Service/activity: Tracks users’ dashboard interactions, search queries, and their results.
Elastic Activity Logs Index: The Log Shipper indexes log files from the file system into Elastic (Squirro project index) using the Squirro Activity Log data source (see Activity Tracking).
Update Manager:
Aggregates unique queries from the Activity Logs Index (2)
- Maintains the customised Popular Queries Index that stores:
query
,context
,trendiness.popularity
Topic Service/typeahead: Returns typeahead suggestions from the Popular Query Index
Settings#
Server Configuration#
Configure the following server-wide settings in the Server space under Configuration:
Name |
Value |
Description |
|
Default: |
Enable or disable the popular query feature.
|
|
|
Elesticsearch index that contains all unique queries, sorted by popularity and project. This is the input data for the Typeahead Suggester (see figure above). |
|
|
Interval in seconds to run popular-query aggregation update task. |
Project Configuration#
You can control the scope of the popular query suggestion with the following setting in the Project Configuration under the SETTINGS tab of a project.
Name |
Value |
Description |
|
Default: |
Scope on which popular queries are analysed.
|