Hi Experts,
I have a situation wherein in the global search of our internal site, we have to display all results & restrict any list item except one list. Earlier we had restricted /Lists/ & People to be displayed in the results.
But in the new search results I have to display results from only one list along with other results (documents, sites, pages etc).
Below is the original query text entered in the Search Results Query Text editor
{searchboxquery} -contentclass:STS_List_Links
-filename:allitems.aspx -Path:/articles/Pages/default.aspx
-filename:DispForm.aspx -Path:/Lists/ -Path:person.aspx
I have tried various different queries with AND, OR operator. I have researched other blogs, sites over google. But unsuccessful. I am sure this is not a rare requirement. Need your expert help.
I have tried this query also...
{searchboxquery} (-filename:allitems.aspx -Path:/articles/Pages/ -Path:/Lists/ -Path:/PublishingImages/) OR
(+(+Path: /Lists/ArticleContent/ AND +filename:*.aspx) AND
-(-Path: */Lists/* OR -filename:*.aspx))