#community-help

Query on Generating Suggestions in Demo

TLDR arif asked how the suggestions in a demo were generated. Md explained they're generated from search query aggregation analytics rules. Jason disclosed they manually added them in the demo.

Powered by Struct AI
5
1mo
Solved
Join the chat
Aug 22, 2023 (1 month ago)
arif
Photo of md5-e08256d678064813deb604fdf86f0867
arif
11:37 AM
Hi,
I have a small query. How the suggestions here in the demo are generated? Are they generated from the indexed data?
The demo URL: https://hn-comments-search.typesense.org/?hn-comments%5Bquery%5D=beethoven

Thanks!
Image 1 for Hi,
I have a small query. How the `suggestions` here in the demo are generated? Are they generated from the indexed data?
The demo URL: <https://hn-comments-search.typesense.org/?hn-comments%5Bquery%5D=beethoven>

Thanks!
Md
Photo of md5-2d52bdc6a037ca5676860972cd54817a
Md
01:27 PM
you can enable analytics rules for search query aggregation
arif
Photo of md5-e08256d678064813deb604fdf86f0867
arif
01:28 PM
So these are the most popular-queries added/enabled by the analytics rules?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:04 PM
In that particular demo though, I manually added them by hand