| By Corey Roth | Article Rating: |
|
| July 1, 2009 10:53 AM EDT | Reads: |
1,803 |
I am sticking with my series of introductory Enterprise Search topics today by writing up some details on how to index a file share. Setting up a file share index is pretty simple, but there are a few things to know, so that is the point of today’s post.
The first step of indexing a file share is identifying your crawl account. This is the account that will be used to index the file share (unless specified differently with a crawl rule) and therefore will need read access to the file share. Start by granting read access on this account to any folder, subfolder, and file that you want indexed. Any folder this account doesn’t have access to will be excluded. If you are not too familiar with how permissions work on file shares, there are two places that an account must have permission: the Sharing tab and the Security tab. You use the Security tab to grant access to an account on the file system itself. This would be the same if that user is logged into that machine directly and trying to view the files. The Sharing tab is what permissions the user has when accessing that folder over the network. In order for an account to be able to read files over the network, the user must have read permission on both tabs. Here is an example of what mine looks like for my crawl account MOSS_Setup. Note: that screenshot is from Windows Server 2008. Pervious versions looked a bit different.
Security Tab with read access:
After you have configured permissions on your account, you need to go to the SSP –> Search Administration –> Content Sources. Create a new content source and give it a name. I called mine File Share in this case. Then you need to specify a start address. You can specify the path as file://server/share or \\server\share. Enter the path to one or more file share sand then save the content source. You can also specify whether or not to index subfolders or not here. This is what my file share looks like.
One thing to note before crawling is that, it will only index file types that you have allowed on the File Types page. For example PDF is not included by default. Add any extensions that you might need. If you need to add any file types, specify the extension without the period (i.e.: pdf not .pdf). You can also add file types programmatically. This alone is enough to get it indexed, but if you want the contents of each file indexed, you will also need to install an appropriate IFilter for any new file type.
Once your file types are in order, you are ready to begin a full crawl. After the crawl is completed, view the Crawl Log and verify that your files were indexed. If there was a permissions problem or any other issues accessing the file share, you will see it here. At this point you can go to your search center and try a search. If all goes well, you should see some search results. To see what got indexed, you can easily write a keyword query to show everything in the content source. For example:
ContentSource:”File Share”
The results would look something like this.
As you can see it’s pretty simple to index file shares. For more information on querying by content source, check out this post.
Follow me on twitter.
Read the original blog entry...
Published July 1, 2009 Reads 1,803
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Corey Roth
Corey Roth, a SharePoint Server MVP, is a consultant at Infusion specializing in SharePoint for clients in the energy sector. He has more than ten years of experience delivering solutions in the energy, travel, advertising and consumer electronics verticals.
Corey specializes in delivering ECM and search solutions to clients using SharePoint. Corey has always focused on rapid adoption of new Microsoft technologies including Visual Studio 2010, .NET Framework 4.0, and Silverlight.
He is a member of the .NET Mafia (www.dotnetmafia.com) where he blogs about the latest technology and SharePoint. He is dedicated to the community and speaks regularly at user groups and SharePoint Saturdays.
- How to: Query Search with the SharePoint 2013 JavaScript Client Object Model
- How to: Query SharePoint 2013 using REST and JavaScript
- Configuring and using IRM with Office 365 and SharePoint Online
- How to: Build Client Web Parts in SharePoint 2013 with Office Developer Tools RTM
- Importing Search Configurations with SharePoint Apps
- SharePoint 2013 Autocomplete textboxes using the term store and CSOM
- Speaking at SharePoint Saturday Houston, San Antonio SharePoint Users Group, and SharePoint Summit Toronto
- Determining the most popular items in a document library in SharePoint 2013
- Judging an IT department’s effectiveness by how long it takes to create a user account
- JavaScript runtime error: 'NotifyScriptLoadedAndExecuteWaitingJobs' is undefined
- Slides and code samples from my Search talk at SharePoint Summit Toronto
- How to: Get a Result Source Id in SharePoint 2013
- Microsoft Partner Benefits: Rocking your SharePoint Online demos
- How to: Query Search with the SharePoint 2013 JavaScript Client Object Model
- How to: Query SharePoint 2013 using REST and JavaScript
- Configuring and using IRM with Office 365 and SharePoint Online
- How to: Build Client Web Parts in SharePoint 2013 with Office Developer Tools RTM
- Installing SharePoint 2013 apps with PowerShell
- Importing Search Configurations with SharePoint Apps
- SharePoint 2013 Autocomplete textboxes using the term store and CSOM
- Creating SharePoint lists with Excel data using Access 2013
- Speaking at SharePoint Saturday Houston, San Antonio SharePoint Users Group, and SharePoint Summit Toronto
- Determining the most popular items in a document library in SharePoint 2013
- Judging an IT department’s effectiveness by how long it takes to create a user account
- Adding and Deploying Solutions with PowerShell in SharePoint 2010
- Quick Overview of Master Pages in SharePoint 2010
- Configure an External List with BCS in SharePoint Foundation 2010
- Get to know the Refinement Web Part in SharePoint 2010 Enterprise Search
- How to: Build a SharePoint 2010 PowerShell Cmdlet
- A Simple Way to Programmatically Create SharePoint Security Groups
- Feature Versioning and Upgrades in SharePoint 2010
- Phonetic People Search in SharePoint 2010
- Windows Azure for Noobs
- Calling the Enterprise Search Web Service from Silverlight 3
- SharePoint 2010: 12 Hive + 2 = 14 Hive
- Intro to Querying Lists with REST and ListData.svc in SharePoint 2010





















