简体   繁体   English

Searchkick上的搜索统计

[英]Search statistics on Searchkick

I have a project on rais with searchkick and I was trying to find out if there is a way to get what people are searching the most on my site. 我有一个带searchkick的rais项目,我试图找出是否有一种方法可以使人们在我的网站上搜索最多。

Is this possible with searchkick and elasticsearch? searchkick和elasticsearch可以做到吗?

Yes, it is possible. 对的,这是可能的。

Running together with searchkick you can use searchjoy gem. searchkick一起运行时,可以使用searchjoy gem。 With searchjoy you can view and monitor the performance of your top searches . 使用searchjoy,您可以查看和监视热门搜索的效果

If you don't want to use searchjoy , you can use searchkick's conversion feature. 如果您不想使用searchjoy ,则可以使用searchkick的转换功能。 I think is not what you really want because with only conversions you will not be able to see the top searches. 我认为这不是您真正想要的,因为仅通过转化,您将无法看到热门搜索。 More information about searchkick conversions you can find at the docs . 您可以在docs上找到有关searchkick转换的更多信息。

I would try using the "conversions" feature from searchkick. 我会尝试使用searchkick的“转化”功能 You can use that to persist queries as listed in the readme. 您可以使用它来保留自述文件中列出的查询。 I haven't tried it myself, but I would thisnk Redis would be a good choice to persist these data. 我自己还没有尝试过,但是我想Rednk将是持久保存这些数据的好选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM