0

FilterQuery is not working correct/expected when SearchString contains , (comma).

From Solr-Admin Screen:

QueryString (SearchString) - Word1,Word2 without any queryfilter - Returns me all the results for 'Word1,word2'

QueryString (SearchString) - Word1,Word2 and Applied Queryfilter on field which is indexed, stored and multivalued.

It returns no result.

I'm just concerned that is there any known issue with queryfilter and comma containing search strings ?

Requests sent to Server

Without 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&$top=10

With 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

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Enigma
  • 749
  • 1
  • 13
  • 35

1 Answers1

0

Try putting word1,word2 in double-quotes like "word1,word2".

  • Problem solved by changing Tokenizer and Filters in Schema.xml. Thanks for your suggestion. – Enigma Jan 24 '14 at 06:22