`
JLK
  • 浏览: 233223 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

solr 空格关键词

    博客分类:
  • solr
阅读更多

在应用中,可能会遇到英文短语作为一个检索词进行索引,而索引的分词也是短语分词或string分词。因为英文短语间会有空格,而用solr检索时会把空格转变为+号,就成了两个词联合检索,用什么方法可以避免形成两个词?

分享到:
评论
2 楼 dc5858 2011-05-31  

"jakarta apache"~10  search for a "apache" and "jakarta" within 10 words of each other in a document use the search
1 楼 JLK 2011-03-16  
遇到这种情况,可以使用“”号把两个词包起来,不论有几个词有几个空格,solr都只认作一个词

相关推荐

Global site tag (gtag.js) - Google Analytics