I have the following :-
I am working on a SharePoint 2013 server. and I have an enterprise wiki site collection.
Each wiki page is linked to a managed metadata term store through a site column named
And each wiki page can be linked to multiple terms through the
each wiki page have a “Custom Status” site column with 2 values; active (default) & Expired.
Now I am trying to achieve the following:-
- To exclude from the search any wiki page which is linked to a single term and this term is deprecated ..
- To exclude from the search any wiki page which have its “Custom Status” =
Expiredregardless if its term is depreciated or not.
Now I know that i can exclude wiki pages based on their WikiCategory value as follow:-
Central Administration >>
Managed Services >>
Search Service >>
open the Query builder >> Add the following
WikiCategory <> “123”. Which will exclude all the wiki pages linked to a term named 123. But I do not want to follow this approach… What I am trying to achieve is to specify to exclude all the wiki pages linked to a single term and this single term is deprecated (deprecating a term can be done from the term store management by right clicking on the term and click on deprecate term). But if a wiki page is linked to let say two WikiCategories and one term is deprecated while the other is not , then I need to keep showing the wiki page inside the search.
So can anyone advice how I can achieve this ? mainly to exclude wiki pages which have their custom status = expired OR they are linked to a single depreciated term ?
Thanks in advance for any help ?