0

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

从 Solr-Admin 屏幕:

QueryString (SearchString) - Word1,Word2 没有任何 queryfilter - 返回我所有的结果 'Word1,word2'

QueryString (SearchString) - Word1、Word2 和应用 Queryfilter 在被索引、存储和多值的字段上。

它不返回任何结果。

我只是担心查询过滤器和包含搜索字符串的逗号是否存在任何已知问题?

发送到服务器的请求

没有 QF:http://<>//text?$select=id,description,infoType,businessType,docType_t,keywords_en,title,scId,domainTypeId,nodePathString&querystring=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! ex%3DtagForinfoType%7DinfoType%26facet%3Dtrue%26facet.mincount%3D1%26facet.field%3DnodePathText%26f.nodePathText.facet.sort%3Dindex%26f.nodePathText.facet.limit%3D-1%26computeIcons%3Dtrue&$skip= 0&$顶部=10

使用 QF:http://<>/text?$select=id,description,infoType,businessType,docType_t,keywords_en,title,scId,domainTypeId,nodePathString&querystring=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&$skip=0&$top=10

4

1 回答 1

0

尝试word1,word2使用双引号,例如"word1,word2".

于 2014-01-22T12:36:12.610 回答