Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We're trying to create a seach query that grabs a content type based on a taxonomy field added to our custom Publishing Page content type. We seem to be having one of two issues:

  1. We don't know how to call a field that has a space. We've been using the internal name Department:{Page.EH_x0020_Department} and also tried the display name Department:{Page.EH Department}. Neither work, nor does inserting %20 between the two.

  2. We just don't know how to call a managed-metadata page field. If we copy/paste the term we want returned into the title of the page {Page.Title}, the query works. Are we missing something that is extra for managed metadata fields?

I couldn't find anything aside from the basics on Google, I appreciate any help that can be given.

share|improve this question
I have gotten confirmation from Microsoft that this is indeed a bug with SharePoint 2013. I will update this with any solution I hear back from them. –  EHorodyski May 8 '13 at 13:06

1 Answer 1

It may well be a bug, but for fellow travellers, I found this in TechNet: http://technet.microsoft.com/en-us/library/jj683123.aspx

Dealing with spaces in values

Search queries use the space character to tokenize query values issued by users. When a query variable is expanded to a value that contains a space, the complete value is enclosed in double quotations. For example, for the query author:{User}, the expanded value becomes author:"John Smith".

If you don't want the value to be enclosed with double quotations — for example, when concatenating multiple values — you can use the escape character in the query variable. For example: customProperty:”{\User.Name};{\User.ZipCode}” would become customProperty:”John Smith;98109”.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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