我认为这对于更广泛的ElasticSearch社区来说可能是一个问题,但由于我们正在使用Searchkick,我以为我会从这里开始......
我们有一个包含多个字符串字段的记录的索引,例如:
- " Jimi"," Hendrix","吉他"
- " Phil"," Collins"," Drums"
- " Sting",""," Bass"
- " Ringo"," Starr"," Drums"
- " Paul"," McCartney"," Bass"
醇>
我想将searchkick / elasticsearch传递给长字符串,比如说:
"众所周知, Jimi 喜欢为他的吉他设置光线,并在舞台上粉碎所有鼓。 "
我希望返回有任何匹配的字段 - 最好按照最匹配的顺序排列:
- " Jimi "," Hendrix"," 吉他"
- " Phil"," Collins"," 鼓"
- " Ringo"," Starr"," 鼓"
如何设置查询?
谢谢!