I have a list of training courses which are tagged with a LearningTopic managed metadata column. Values include thinks like Word, Excel, Photoshop, Phone Skills. This LearningTopic termset is used by several different departments and its structure is pretty much set.
The list is shared through the cross-site publishing features of 2013 and on the user/publishing side we have a managed navigation where we reuse terms from the LearningTopic termset.
We create a Category Term page with a content search web part to retrieve the items and put in the query for the CSWP something like this:
And that works. As we navigated the terms in the publishing site the one Category Term page queries the attached catalog's result source and pulls up anything tagged with the appropriate term.
All of this is working as expected and is good so far.
Here is the part that doesn't work
On this one publishing site we want to create a new term in the managed navigation term set. For example we want to add Microsoft products and then reuse the existing Word and Excel terms under that.
In this case when we navigate to Word and Excel it still works, but when we navigate to MicrosoftProducts we get nothing. I tried following this page which shows how to query all children of a term and changed the query to:
But that didn't work because Word and Excel aren't really children of that term they are just pinned there.
I also thought I might be able to put a custom property in the Microsoft Products term so I created a local property called FancySearchTerms with a value of
owstaxIdLearningTopic:GP0|#<guid for Word> OR owstaxIdLearningTopic:GP0|#<guid for Excel>
And then in the content search webpart I change the query to
I could see from the Test tab in the query builder that the FancySearchTerms were being read and incorporated into the query text, but unfortunately they were wrapped in "double quotes" which makes it search for text, not the managed properties.
In one sense the reused terms aren't children of the new term, but in another sense they are.
So how does one use a content search web part query to retrieve children reused under a new term?