Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

If Condition in Keyword Query Language (SharePoint 2013 Search Results)

$
0
0

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.




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>