Question

I'm finding that my SharePoint 2010 search results are showing results for both a folder and that folders default.aspx page. For example, my results can look like this:

products
<description taken from default.aspx page>
http://myserver/Pages/foldername

Product One - Information
<description taken from default.aspx page>
http://myserver/Pages/foldername/default.aspx

Ideally I want to remove/exclude the results for the folders, leaving just the default.aspx pages in the results.

Can anyone help me out with a crawl rule to produce the desired results? Either a 'standard' *://*... style rule or a regular expression?

Était-ce utile?

La solution

You can limit the search returns with the query you use, and not have to change the crawl rule.

For example, If you are searching for "Product", you can enter the following into the search query box:

Product IsDocument:1

and you should only get documents and not folders.

You can configure the query web part to automatically append IsDocument:1 to all searches, so users don't need to enter it on all searches.

Update:

You enter the extra query terms in the Search Box Web Part. See screenshot. Search Box Extra Query Terms

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top