filter在Solr中使用包含搜索字符串的逗号查询无法正常工作

时间:2014-01-21 14:23:10

标签: solr special-characters comma solr-query-syntax

当SearchString包含(逗号)时,FilterQuery无法正常/预期。

从Solr-Admin屏幕:

QueryString(SearchString) - Word1,Word2 没有任何queryfilter - 返回'Word1,word2'

的所有结果

QueryString(SearchString) - Word1,Word2 和Applied Queryfilter对索引,存储和多值的字段。

没有结果。

我只是担心queryfilter和包含搜索字符串的逗号有任何已知问题吗?

发送到服务器的请求

没有QF: HTTP://<> //文本$选择= ID,描述,信息类型,businessType,docType_t,keywords_en,标题,SCID,domainTypeId,nodePathString&安培;查询字符串= Q%3DWIPER%2CROD%26hl%3Dtrue%26hl.simple .PRE%3D%3Cspan%20class%3D%27highlightSearchKeyword%27%3E%26hl.simple.post%3D%3C%2Fspan%3E%26hl.fl%3Dteaser%26sort%3Dscore%20desc%26facet.field%3D%7B !恩%3DtagForinfoType%7DinfoType%26facet%3Dtrue%26facet.mincount%3D1%26facet.field%3DnodePathText%26f.nodePathText.facet.sort%3Dindex%26f.nodePathText.facet.limit%3D1%26computeIcons%3Dtrue和放大器; $跳过= 0&安培; $顶部= 10

使用QF: HTTP://<> /文本$选择= ID,描述,信息类型,businessType,docType_t,keywords_en,标题,SCID,domainTypeId,nodePathString&安培;查询字符串= Q%3DWIPER%2CROD%26df%3DpartName%26qf%3DpartName% 26hl%3Dtrue%26hl.simple.pre%3D%3Cspan%20class%3D%27highlightSearchKeyword%27%3E%26hl.simple.post%3D%3C%2Fspan%3E%26hl.fl%3Dteaser%26sort%3Dscore%20desc% 26facet.field%3D%7B!EX%3DtagForinfoType%7DinfoType%26facet%3Dtrue%26facet.mincount%3D1%26facet.field%3DnodePathText%26f.nodePathText.facet.sort%3Dindex%26f.nodePathText.facet.limit%3D- 1个%26computeIcons%3Dtrue&安培; $跳过= 0&安培; $顶部= 10

1 个答案:

答案 0 :(得分:0)

尝试将word1,word2放在双引号中,例如"word1,word2"