在字段中搜索短语

时间:2016-11-01 05:47:05

标签: solr

我在Solr中编制了索引文档,如下所示:

watcher.actions.slack.service:
  default_account: monitoring
  account:
    monitoring:
      url: <your_slack_hook_url>
      message_defaults:
        from: watcher 

我可以用

搜索文档
   {
    "name":["Michael"],
    "keywords":["partnerships,business development,marketing,head of product development"],
    "id":"10023e3ze5n8glm6b",
    "city":["sf"],
    "_version_":1549772729479069696},

但如果我尝试在 "product management" "management product" 字段

内搜索,则无效
keywords

如何在字段中搜索短语?

1 个答案:

答案 0 :(得分:1)

你应该试试

fq=keywords:*product management*