I am working on a SharePoint enterprise server 2013. and I have created a term store and linked the wiki pages with the term store. now I am trying to define the following search rule:-
If there is a wiki page which is linked to a term, and this term have a shared property named
"ShowInSearch" =false
, to exclude the wiki pages from being displayed in the search result.
To achieve this I tried the following:-
1- I went to "site setting">>"Term store management".. Inside certain terms I added the following shared property :-
2-Then I went to "Central admin">>"managed service">>"search">>"result sources">>and I modify the default query inside the query builder, to exclude from the search any wiki page linked to a term and this term have "ShowInSearch" =false
. I did so by adding the following rule to existing query {Term.ShowInSearch}<>"false"
(as mentioned on this link link). here is how the full query looks like , after my modifications:-
{?{searchTerms} -ContentClass=urn:content-class:SPSPeople} {Term.ShowInSearch}<>"false"
Then I run a full scan, but the search will always show the following error:-
Nothing here matches your search
so can anyone advice on this, please ? how I can exclude from the search any wiki page linked to a term and this term contain a shared property named "ShowinSearh"=false
?? and why my above approach did work ?
{Term.*}
syntax only to be used for managed navigation? (And always points to the current navigation-term?)