【问题标题】:Is there any default way in elasticsearch to save the searcheselasticsearch中是否有任何默认方式来保存搜索
【发布时间】:2019-07-01 09:51:55
【问题描述】:

我已经在我们的网站中实现了 Elasticsearch,如果我们在我们的网站中搜索任何关键字,我想保存搜索历史,以便将来我可以跟踪我们搜索的关键字。 如果有任何默认方式可以在 elasticsearch 中保存搜索。

【问题讨论】:

    标签: elasticsearch


    【解决方案1】:

    有一个用于慢速搜索的日志记录功能,所有运行时间超过阈值的查询都会被记录下来。如果您将 treshlod 减少到 0,所有搜索都将被记录。

    请看这里:https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html

    玩得开心!

    【讨论】:

      猜你喜欢
      • 2016-11-15
      • 1970-01-01
      • 1970-01-01
      • 2015-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-28
      • 2020-11-17
      相关资源
      最近更新 更多