I am running SharePoint Foundation 2013. I am having an issue excluding URLs from my search results.

We have setup the search query to only search a particular subsite which is a List that has several thousand individual items. We also have Views created on that list. The problem we are having is the views come back listed in the search results. I want just the list items to return and do not want the view URLs.

This is what I am using for my default content source query.

{searchTerms} path:http://sharepointsite/productenhancementlist

I have tried creating crawl rules to exclude the specific view urls and reset the index and did a full crawl and then I got back no results for our List.

If I remove the crawl rules and then remove the urls from the search results with the built in functionality they come back the next time an incremental crawl runs which we have set to run ever 2 hours.

So my question is, how can I have these urls permanently removed from search results?


    Search results only brings back results from 
    http://sharepointsite/productenhancementlist/ this includes
    http://sharepointsite/productenhancementlist/view1.aspx view2.aspx etc...
    as well as the results we want 

1 Answer 1


Try it with this query: path:"http://melcher.it/projects" (IsDocument:"True" OR contentclass:"STS_ListItem")


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.