[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Excluding URLs from Sharepoint Foundation 2013 Search

Posted on 2013-06-14
1
Medium Priority
?
1,903 Views
Last Modified: 2013-06-17
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://sharepoint/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?

Example:
Search results only brings back results from http://sharepoint/productenhancementlist/ this includes http://sharepoint/productenhancementlist/view1.aspx view2.aspx etc... as well as the results we want http://sharepoint/productenhancementlist/DispForm.aspx?ID=1234
0
Comment
Question by:jlburgin
1 Comment
 

Accepted Solution

by:
jlburgin earned 0 total points
ID: 39253047
Was provided this on another site and it resolved me issue for the search query

path:"http://URL" (IsDocument:"True" OR contentclass:"STS_ListItem")
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month19 days, 10 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question