I've put a content search webpart on a page together with some refiners. The items in the content search webpart are filtered by a query string parameter (name: tag)

path:"https://abcdefgh.sharepoint.com/Onderwijs/Opleidingen/opleidingswerkruimte"  (FileExtension:doc OR FileExtension:docx OR FileExtension:xls OR FileExtension:xlsx OR FileExtension:ppt OR FileExtension:pptx OR FileExtension:pdf) (IsDocument:"True" OR contentclass:"STS_ListItem") {?RefinableString00:{QueryString.tag}}

this works fine until I use one of the refiners, the results are getting 'refined' but when I click 'show all' again in the refiner section no data is show.

The url changes to something like this:


any help here?

2 Answers 2


Using SharePoint 2010 Search Query String Parameters http://t.co/RmsjprToe5


You can confirm what value the query is getting from the {QueryString.tag}. First go to the page, refine and then remove the refiners. Edit the content search webpart and go into the query builder. Click on the test tab and expand the more options version. At the bottom you will see the value the tag is returning. My guess is that it will look like.


Because the QueryString.tag code doesn't know that a parameter value should end at the hash portion of the url.

I've worked around this by adding an & to the end of the parameter. I'm not sure how the link and its parameter value are generated, but you need to have the initial url look like


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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