in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Robert J Wheeler

...a blog to remember...

Adding file shares to Enterprise Search

Adding file shares to search within MOSS is relatively easy.  The results of searching within the scope of the file share will display the links as 'file://...' and will display the first few lines of the content.

For this example, on the SharePoint Server, create a shared folder: i.e. C:\Shared => \\[server]\Shared

Open the SharePoint Central Administration and navigate to the Shared Services where the index will be created.  Click on the Search Settings link under the Search section.

We want to add the shared drive as a content source but we do not want to add it more than once.  When satified that the source is unique and can be access for crawling, click the link next to Content Sources.  This will get us into the Manage Content Sources screen where we will add a new content source.  Click New Content Source from the menu to add the source.

Give the source a name: e.g. Shared Drive Content and then select File Shares from the options below.  Enter the start address for the content which should be the one that was created earlier: i.e. \\[server]\Shared.  Choose whether or not to crawl sub-folders or just the share itself.

When finished, click OK which will take you back to the ‘Content Sources’ page.  Click on the content source created to show the context menu and select "Start Full Crawl".  This will begin the process of indexing the items on the shared drive.

Next we will add a scope which will use the content source created above. Back on the Search Settings page, scroll down to Scopes and click the link next to the item 'Scopes'.  You will find the content sources and the number of files created next to them.  Click 'New Scope' and enter a Title for this.  Click Okay to save.

Back on the View Scopes page you will see the scope that was just added with a link to 'Add Rules'.  Click this link to add the content source.  On the Add Scope Rules page select Content Source, and select the source created above.  Click OK to save.

Navigate back to the Search Settings page and scroll down to Scopes again.  Click 'Start Update Now' which will update the scopes that were added.

Navigate to the site that will use the new scope and click Site Settings -> Manage All Settings -> Search Scopes.  Create or select the group that will use the scope created.  You will see the list of scopes included in the group, and all scopes that are available to use, and the order of preference.  Select the scope created and click OK.At this point the scope is added and the drop-down list next to the search box will display the name.  Select this scope and then search for the items.

Notice that the results are returned like other search results with a hyperlink pointing the files.  This is all well and useful except what about security on the file share?  What about results that we do not want people without access rights to see?  This will be explained in the next part 'Using Folder Access Permissions with Shared Drive Indexes in MOSS'.

 

Comments

 

Bruno Erni said:

Do you have any experience with file shares that reside in a different domain (forest) which is not trusted? My file share is in a domain that has a one-sided trust to to "MOSS domain". Crawling with a user from the "file share domain" works, however no files can be found in the search (scope shows no or only a few items).

August 3, 2007 1:38 AM
 

Robert J Wheeler said:

Check the crawl logs to verify the error.  If you have Access Denied then you should add add a crawl rule which uses an account in the domain that the file share resides in.  This may allow the indexer to crawl the structure.  But if the file share has folder or file level permissions, and the alternate [DOMAIN\[UserName] is not in any security group or given specific access rights, you will get the same results.  Any successful crawls will include file level access rights associated with the content, and will return no results for the currently logged in user if the account is not permitted to access the resource.

August 3, 2007 8:54 AM
 

15 Links Today (2007-08-03) said:

Pingback from  15 Links Today (2007-08-03)

August 3, 2007 10:20 AM
 

Michael Erwin said:

Anxiously awaiting the next part of the blog.  We're upgrading 50+ SP 2003 servers to MOSS, and several of the boxes will be dedicated to Enterprise Search.  Indexing huge legacy file shares for easy searching (mainly for e-discovery) is a major goal.  We're trying to figure out the best strategy for giving the crawl account rights to get to everything without giving it excessive permissions, plus we don't want to re-ACL tens of millions of files.

August 15, 2007 9:15 AM
 

links for 2007-08-16 « Footprint of IT said:

Pingback from  links for 2007-08-16 « Footprint of IT

August 15, 2007 8:35 PM
 

Andy Rosendahl said:

Hi Robert, I'm also waiting tensely for your announced next part. As Michael already described: It would be great if there's is a solution to avoid editing ACLs of countless folders. Isn't it possible to use some sort of backup previlege for granting read only access?

Andy

September 7, 2007 10:49 AM
 

Russ Hancock said:

Also waiting on the next bit Rob!

Cheers

Russ

September 20, 2007 3:10 AM
 

Steve Dalby said:

Wet my appetite for the next page

October 5, 2007 12:44 PM
 

Johan said:

Hi

Thanx for an intressting blog!

when are you posting the second part?

I am waiting

/Johan

October 15, 2007 6:19 AM
 

Peter Doyle said:

Hi

Any chance of seeing part 2 of teh blog?

Thanks.

December 20, 2007 5:28 AM
 

Peter said:

It seems that this blog is as close as I have seen to getting an answer to the question "If you index documents on a shared drive, are the results security trimmed in the SharePoint search interface".  But the answer still doesn't seem to be documented anywhere!  If anyone can solve this mystery it would be greatly appreciated.

March 11, 2008 6:58 PM
 

Kevin said:

In regards to indexing file shares on other domains, I can successfully MAP a drive from my SharePoint server to the other domain/share using an account on the remote domain.  However, I STILL get "Access Denied" in SharePoint.  Any ideas?

March 18, 2008 6:56 AM
 

Dan Alexander said:

I've managed to configure my Enterprise Search to index a file share on a different server. How can I get SharePoint to use the filesystem properties such as "Keywords", "Categories" and "Description" fields within those files?

September 24, 2008 8:12 AM

Leave a Comment

(required )  
(optional )
(required )  
Add

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts