Hi All,
Can we have an "If" condition in Query text box in SharePoint 2013 Search results page. For example, i want to hide all list items whose status is "HideItem" from appearing in search results?
I am trying this: {?{searchTerms} (contentclass:STS_ListItem -ListItemStatus:"HideItem")}
But, this hides all items like aspx pages, pdf's, docs and displays only list items.
Similarly, hide pages of some name like: AllItems.aspx, ViewDetails.aspx, AllAssets.aspx
{?{searchTerms} (contentclass:STS_ListItem_850 -filename:"AllItems.aspx")}
Any help would be great. Thanks in advance.