0

I have added refinement web part and selected multi refinement.

When I give the refiner value which has symbol('-') in other value text box results are not getting refined.If i check the same refiner value check box ,results are getting refined.Anyone can help on this why this is happening.

0

This is because - (minus or hyphen) is a special symbol/token in SharePoint search.

Special characters such as comma (","), semicolon (";"), colon (":"), underscore ("_"), minus ("-"), or forward slash ("/") are treated as white space. This is related to the tokenization process in SharePoint search query processing.

All the OOB values from Refinement web part works fine because they all converted to hex values. If you see them how they are sending to server when you refining, they all has hex values.

For example, if you convert praveen-battula then it becomes ǂǂ7072617665656e2d62617474756c61

Whereas ǂǂ is the special two characters which tells SharePoint that it is hex value.

When it comes to your problem, I believe "Other Value" field is not converted to hex code (I need to test). If this is not working as expected in OOB web parts then it is a problem in SP product itself.

-Praveen.

  • Hi,I tried checking a refiner value(Apollon-C2a) and applied filter.It is converted to hexa value. But when I give the same value in Other value text box .it is not converted to hexa value . Below is the difference I noticed from url, when applied filter not from text box: m "%3A%7B"%5C" ǂǂ41706f6c6c6f6e2d433261%5C" "%3A" Apollon-C2a" %7D%7D%5D%2C"l"%3A1033%7D. When applied filter using text box : m "%3A%7B" equals(%5C"Apollon-C2a%5C")"%3A"Apollon-C2a"%7D%7D%5D%2C"l"%3A1033%7D – Swetha Paritala Oct 16 '19 at 4:54
  • I think someone from product team should respond on this. As I just mentioned in my answer the hex conversion is not done by OOB web part. This is a problem if we have those special characters. The only solution is to avoid using those special characters in metadata till someone respond to this issue. – Rare Solutions Oct 21 '19 at 18:41
  • Yes,you are right.Thanks for the response. – Swetha Paritala Oct 23 '19 at 11:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.