Microsoft Office SharePoint Server (MOSS) 2007 Search Manager

This lightweight command-line tool for managing crawled and managed properties as well as crawls of the Microsoft Office SharePoint Server (MOSS) 2007 for Search. 

To get the tool, please click DOWNLOAD

Usage

MOSSSearchManager.exe <Command> <SiteURL>

Valid Commands for <Command> argument:

  • crawledprop - to show crawled properties of a category
  • managedprop - to show managed properties of the search schema
  • createmprop - to create a managed property
  • deletemprop - to delete a managed property
  • mapmprop - to map a crawled property to a managed property
  • contentsources - to show content soureces
  • crawl - to manage crawl

Please run this tool under SSP Administrator's account privilege.

For example, "MOSSSearchManager managedprop http://wsssearch" to show the managed properties of the site at http://wsssearch.

More details

crawledprop - to show crawled properties of a category

        Usage: MOSSSearchManager.exe crawledprop <SiteURL> <Category>

        This will give you a list of crawled properties' names, GUID and ValueType.

        Valid Schema Categories for <Category> are:

    • Basic
    • Business Data
    • Internal
    • Mail
    • Notes
    • Office
    • People
    • SharePoint
    • Tiff
    • Web
    • XML

managedprop - to show managed properties of the search schema

        Usage: MOSSSearchManager.exe managedprop <SiteURL>

        This will give you a list of managed properties' names and ID.

createmprop - to create a managed property

        Usage: MOSSSearchManager.exe createmprop <SiteURL> <PropertyName> <DataType>

        This command creates a managed property with a datatype without using UI pages.

        Valid inputs for <DataType> - The data type for the new property. Must be one of:

    • binary
    • datetime
    • decimal
    • integer
    • text
    • yesno

deletemprop - to delete a managed property

         Usage: MOSSSearchManager.exe deletemprop <SiteURL> <PropertyName>

         This is to delete a managed property and unmap all associated crawled properties.

mapmprop - to map a crawled property to a managed property

         Usage: MOSSSearchManager.exe mapmprop <SiteURL> <CrawledPropertyName> <ManagedPropertyName>

           It maps a crawled property to a managed property without using any UI pages.

contentsources - to show content soureces

         Usage: MOSSSearchManager.exe contentsources <SiteURL>

         This command lists the names and ID of all content sources of the site

crawl - to manage crawl

         MOSSSearchManager.exe crawl <SiteURL> <ContentSource> <Action>

         This command can help you to manage crawls and avoid going through UI pages.

         <ContentSource> - Specify the content source name or ID. For the name or ID, please use contentsources command to retrieve a list of available content sources.

         <Action> - Specify the action. Valid actions are:

    • startincremental - Start an incremental crawl
    • startfull - Start an full crawl
    • stop - Stop crawl
    • pause - Pause crawl
    • resume - Resume crawl
    • status - Show the status of the crawl