mercredi 21 janvier 2015

How to find all documents tagged with same metadata as parent page?



Short description of my goal:


I want to use metadata of a wiki page to find documents with the same metadata. The results should be displayed in a Search Results web part on the wiki page.


My setting is as follows:



  • Team Site containing a Document Library DocLib and a Wiki Page Library WikiLib

  • the Document Library contains a column DocID of type Managed Metadata

  • the Wiki Library contains a column ParentIDs of type Managed Metadata (allows multiple values)

  • DocID and ParentIDs point to the same parent term in the term store


Now the seemingly easy task:



  • place a Search Result web part on a wiki page in WikiLib

  • configure the Search Result web part to find all documents where DocID is equal to one of the ParentIDs of the wiki page


My naive approach:



owstaxIdDocID:{Page.owstaxIdParentIDs}


But this doesn't work. More tries:



owstaxIdDocID:Page.owstaxIdParentIDs

{|owstaxIdDocID:{Page.owstaxIdParentIDs}}

owstaxIdDocID:owstaxIdParentIDs


All to no avail.


(Side note: Using the managed properties each on its own works fine, e.g. using owstaxIdDocID:foo works.)


Does anybody know whether this is possible at all? And if yes: how is the correct syntax?








0 commentaires:

Enregistrer un commentaire