【问题标题】:How to append GET parameters to elastic-search when using tire使用轮胎时如何将 GET 参数附加到弹性搜索
【发布时间】:2012-02-03 20:41:59
【问题描述】:

我希望将参数?search_type=count 附加到elastic-search。

curl -XGET 'http://127.0.0.1:9200/votes/_search?search_type=count'  -d '
{
   "facets" : {
      "votes" : {
         "terms" : {
            "field" : "question_id"
         }
      }
   }
}'

类似的东西。我如何告诉轮胎附加search_type=count

【问题讨论】:

    标签: ruby-on-rails elasticsearch tire


    【解决方案1】:

    轮胎中尚不支持search_type=count 查询,github issue 中提到的解决方法是将大小设置为 0。

    【讨论】:

    • 是的,完全正确。我想我们很快就会有_count 查询。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-17
    • 2013-02-14
    • 2012-08-18
    • 2012-06-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多