Condividi tramite


Manage full-text indexes by using Windows PowerShell (FAST Search Server 2010 for SharePoint)(informazioni in lingua inglese)

Data pubblicazione: 12 maggio 2010

A full-text index is used to index groups of managed properties, which allows a search query to be executed across multiple properties simultaneously. You must use a full-text index to achieve ranked results for queries.

In this section:

  • Define a full-text index with a corresponding rank profile by using Windows PowerShell

  • Modify the list of full-text index rank components for a rank profile by using Windows PowerShell

  • Change the importance level of a managed property in a full-text index by using Windows PowerShell

Define a full-text index with a corresponding rank profile by using Windows PowerShell

The following procedure creates a new full-text index, creates a new rank profile, and associates the full-text index to the rank profile using the FullTextIndexRankCollection interface.

  1. Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. At the Windows PowerShell command prompt, type the following commands:

    $NewFTI = New-FASTSearchMetadataFullTextIndex -Name "<NewFullTextIndexName>" -Description "<NewFullTextIndexDescription>"
    $NewRP = New-FASTSearchMetadataRankProfile -Name "<NewRankProfileName>"
    $RCList = $NewRP.GetFullTextIndexRanks()
    $RCList.Create($NewFTI)
    

    Where:

    • $NewFTI is the full-text index object of the new full-text index.

    • <NewFullTextIndexName> is the name of the new full-text index.

    • <NewFullTextIndexDescription> is a textual description of the new full-text index.

    • $NewRP is the rank profile object of the new rank profile.

    • <NewRankProfileName> is the name of the new rank profile.

    • $RCList is the list of existing full-text index rank components for the new rank component.

Nota

When you create a new full-text index, it will be created with the default values for its properties. If you want to set properties to non-default values, you will have to do that after you have created the full-text index.

Nota

When you create a new rank profile, it will be created with the default values for its properties. If you want to set properties to non-default values, you will have to do that after you have created the rank profile. When you create a new rank profile, you can also provide an existing rank profile as a template specifying the "-Template" parameter when you use the New-FASTSearchMetadataRankProfile Windows PowerShell cmdlet.

Nota

When you create a new rank profile, it will have the default full-text index as its full-text index rank component. If you want to associate your rank profile with another full-text index, you must create a new full-text index rank component in your rank profile. It will be added as a second full-text index rank component to the rank profile. Then you delete the default full-text index rank component after you have created the new one.

See also

Modify the list of full-text index rank components for a rank profile by using Windows PowerShell

If you want to modify the list of full-text index rank components for a rank profile, you will have to traverse the list of full-text index rank components and do the modifications on the individual full-text index rank component.

The following procedure shows how you can delete the full-text index rank component associated with the default full-text index.

  1. Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. At the Windows PowerShell command prompt, type the following commands:

    $NewRP = Get-FASTSearchMetadataRankProfile -Name "<NewRankProfileName>"
    $RCList = $NewRP.GetFullTextIndexRanks()
    foreach ($FTIRankComponent in $RCList) 
    {
       if($FTIRankComponent.FullTextIndexReference.Name.Equals("<DefaultFTIName>"))
       { 
          $FTIRankComponent.Delete()
       }
    }
    

    Where:

    • <NewRankProfileName> is the name of the new rank profile.

    • $NewRP is the rank profile object of the new rank profile.

    • $RCList is the list of existing full-text index rank components for the rank profile.

    • <DefaultFTIName> is the name of the default full-text index (in a default configuration this is named "content").

See also

Change the importance level of a managed property in a full-text index by using Windows PowerShell

The ImportanceLevel property is used in the index schema to associate a managed property with a full-text index. This represents the perceived importance of a managed property within the full-text index as related to drilling. A higher ImportanceLevel indicates that the managed property will be part of the matching when drilling to that level.

The following procedure shows how you can set the importance level of the managed property named "Title" to the value "2".

  1. Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. At the Windows PowerShell command prompt, type the following commands:

    $content = Get-FASTSearchMetadataFullTextIndex -Name content
    $title = Get-FASTSearchMetadataManagedProperty -Name Title
    $title_ftim = Get-FASTSearchMetadataFullTextIndexMapping -ManagedProperty $title -FullTextIndex $content
    Set-FASTSearchMetadataFullTextIndexMapping -Mapping $title_ftim -level 2
    

Nota

Do not use a higher importance level value than necessary. Using too many levels within a full-text index will lead to an unnecessary large index file structure. You should always have at least one managed property with importance level 1, and in most cases you do not need to use more than the three first levels. This should be the managed property containing the body of your items.

See also

Cronologia delle modifiche

Data Descrizione Motivo

12 maggio 2010

Pubblicazione iniziale