在字段中搜索以特殊词开头的文档

时间:2020-06-16 02:08:31

标签: solr solr-query-syntax

我有一个名为Popular Songs的索引,文档类型为Song。每个文档都有一个名为“歌词”的字段,其中包含特定歌曲的歌词。

我想查询所有以单词“ Love”开头的歌曲,而不是歌曲内容为“ Love”的歌曲。 有人可以给我一个主意吗?

谢谢

样本文件


     "title":["I Like You So Much You'll Know It"],
     "artist":["Honey Jemlan"],
     "rank":[286],
     "genre":["Dubstep"],
     "duration":[271.43791],
     "hitrate":[0.42],
     "bpm":[135.914],
     "year":[1993],
     "lyrics":["Love you every minute every second  Love you everywhere and any moment  Always and forever I know I can't quit you  'Cause baby you're the one I don't know how"],
     "id":"ffadbb19-195d-4089-8d31-163d7e3055d2",
     "_web_scraper_order":["1592132318-2867"],
     "_version_":1669613422920073216},```

0 个答案:

没有答案
相关问题