在searchkiq的多个词上匹配词组前缀

时间:2018-06-20 18:15:02

标签: elasticsearch searchkick

我已经在Rails应用程序中使用Searchkick。我一直在努力与此查询。如何在searchkick中执行以下查询?

{
  "query": {
    "bool": {
      "must": [
        {
          "term": {
            "user_id": "10"
          }
        },
        {
          "bool": {
            "must_not": [
              {
                "term": {
                  "state": "deleted"
                }
              }
            ]
          }
        },
        {
          "bool": {
            "should": [
              {
                "match_phrase_prefix": {
                  "name.analyzed": "foo"
                }
              }
            ],
            "minimum_should_match": "1"
          }
        }
      ]
    }
  }
}

我在searchkick文档中找不到关于match_phrase_prefix的任何引用。

0 个答案:

没有答案
相关问题