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]\SharedOpen 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'.