Create Search Scope Using ContentClass

    Create the Shared Scope

    The first step is to create a Shared Scope that will target the document library. This Shared Scope will be set up in the Shared Services Provider using the following steps:

    1. On the home page of the Shared Services Administration site, click “Search Settings”
    2. On the Search Settings page, click “View Scopes”
    3. On the View Scopes page, click the “New” button
    4. On the Create Scope page
    5. On the View Scopes page, locate the new scope and click the “Add Rules” link
    6. On the Add Scope Rule page
    7. Return to the Search Settings page
    8. Under the Scopes section, click the “Start Updates Now” link

    Note:–

    In order to Create a Content Datasource specific to Document Library
    Create Scope select contentclass and value STS_ListItem_1002

    Here 1002 is type value from custom ListDefinition.

    From the home page of your portal, select Site Actions>>Site Settings>>Modify All Site Settings
    On the Site Settings page, under the Site Collection Administration page, click the “Search Scopes” link

    It will be under  Unused Scopes section.
    Now you have to add the scope to the Search Dropdown

    Search Center Tab

    Go to search center site

    From the Search Center page, select Site Actions>>Create Page>Search Page>Modify Shared Web Part>
    Miscellaneous section>Target Search Results Page>GiveCorrectresultPage.

    From the Search Center page, select Site Actions>>Create Page>Search Results Page>Modify Shared Web Part>
    Miscellaneous section>Target Search Results Page>GiveCorrectresultPage.
    From the Search Center page, select Site Actions>>View All Site Content>Tabs in Search Pages

    From the Search Center page, select Site Actions>>View All Site Content>Tabs in Search Results

    Cntent Class Listing from MSDN.

    • News Listing:  urn:content-class:SPSListing:News
    • People:  urn:content-class:SPSPeople
    • Category:  urn:content-classes:SPSCategory
    • Listing:  urn:content-classes:SPSListing
    • Person Listing: urn:content-classes:SPSPersonListing
    • Text Listing:  urn:content-classes:SPSTextListing
    • Site Listing: urn:content-classes:SPSSiteListing
    • Site Registry Listing: urn:content-classes:SPSSiteRegistry
    • Site:  STS_Web
    • List: STS_List
    • List Item:  STS_ListItem
    • Events:  STS_List_Events
    • Tasks:  STS_List_Tasks
    • Announcements:  STS_List_Announcements
    • Discussions:  STS_List_DiscussionBoard
    • Contacts:  STS_List_Contacts
    • Links:  STS_List_Links
    • Document Library: STS_List_DocumentLibrary
    • Document Library Items:  STS_ListItem_DocumentLibrary
    • Picture Library: STS_List_PictureLibrary
    • Picture Library Items: STS_ListItem_PictureLibrary
    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 )

    Twitter picture

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

    Facebook photo

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

    Google+ photo

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

    Connecting to %s