Searchkick子串匹配查找

时间:2017-03-09 13:24:35

标签: elasticsearch searchkick

我认为这对于更广泛的ElasticSearch社区来说可能是一个问题,但由于我们正在使用Searchkick,我以为我会从这里开始......

我们有一个包含多个字符串字段的记录的索引,例如:

  1. " Jimi"," Hendrix","吉他"
  2. " Phil"," Collins"," Drums"
  3. " Sting",""," Bass"
  4. " Ringo"," Starr"," Drums"
  5. " Paul"," McCartney"," Bass"
  6. 我想将searchkick / elasticsearch传递给字符串,比如说:

    "众所周知, Jimi 喜欢为他的吉他设置光线,并在舞台上粉碎所有。 "

    我希望返回有任何匹配的字段 - 最好按照最匹配的顺序排列:

    • " Jimi "," Hendrix"," 吉他"
    • " Phil"," Collins"," "
    • " Ringo"," Starr"," "

    如何设置查询?

    谢谢!

0 个答案:

没有答案