Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

    Advertisements
  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand
  • Advertisements

Search – Content Sources

Posted by Paul on June 20, 2012


In this article we can explore Content Sources and how to add a new Content Source.

Content Sources

Content Source represents the origin of content. As SharePoint handles various contents like Database, File System etc. there should be a Indexing Service to handle all these sources.

Please have a note that SQL Server is having Full Text Search index, but SharePoint has its own Indexing engines.

By default SharePoint searches in the site collection and document libraries.

Using Custom Content Source configuration we can make SharePoint search the possible areas:

· File System Drives

· Network Drives

· Lotus Notes Data

· Web Sites

Adding new Content Source

In this example we are trying to add a File System content source. After adding, the user will be able to search on the files and contents inside it.

Following are the steps involved:

1. Create a Share Folder named Contents with a Text File inside it and make Read/Write permissions to Everyone

clip_image002

Ensure that the above folder contains a text file with data for eg: MyTodo

2. Open the Central Administration web site and click on Manage Service Applications link

clip_image004

3. Click on Search Service Applications from the appearing page

clip_image006

4. Click the Content Sources link from the left pane

clip_image008

5. Click on the New Content Source link from the appearing page

clip_image010

6. Enter the following details in the Content Source page

clip_image012

Click the OK button and the Crawler will be performing a crawl.

7. Go back to the main site and enter the keyword to search for (MyToDo). You can view the following results.

clip_image014

This concludes our article on adding Content Source and doing a sample search.

Viewing Crawl History

We can always view the crawl log to check the activity was successful and view the errors if not. Use the View Crawl Log command to view this.

clip_image016

Starting Crawls

We can start / stop / pause crawls manually by using the command bar as shown below. Please note that only after a full crawl the data will be searchable.

clip_image018

Summary

In this article we have explored how to add a content source inside SharePoint site.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s