Share via


Setosearchsetting: Stsadm operation (Office SharePoint Server)

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2015-03-09

Operation name: Setosearchsetting

Sets the current values of the Enterprise search settings in Microsoft Office SharePoint Server 2007.

For additional information about how to manage settings to improve search results, see Helping users make successful queries (Office SharePoint Server).

Note

The setosearchsetting operation was first introduced in the April Cumulative Update.

Important

Any change in a value of the target setting will not take effect until the following occurs:

  • An iisreset /force command is run on each server that is used as a front-end Web server for the Microsoft Office SharePoint Server 2007 installation.

  • The search service is restarted on each query server for the Microsoft Office SharePoint Server 2007 installation.

Syntax

stsadm -o setosearchsetting

**   -ssp <SSP name>**

**   -setting <setting name>**

**   -value {True | False}**

Parameters

Parameter name

Value

Required?

Description

ssp

A valid Shared Services Provider (SSP) name, such as "SharedServices1"

Yes

Specifies the name of the SSP that is associated with the search setting.

setting

"Schema:HitHighlight_Contains_Clause"

Yes

Specifies whether query terms that are used in a CONTAINS clause of the SQL syntax query are hit-highlighted in the search results. If the setting is True, the terms are highlighted. If the setting is False, the terms are not highlighted.

value

A valid Boolean value, such as True or False

Yes

  • True: Specifies query terms used in the CONTAINS clause of the SQL syntax query to be hit-highlighted in search results.

  • False: Specifies query terms used in the CONTAINS clause of the SQL syntax query should not be hit-highlighted in search results.

    The default value is True.

Examples

To disable the hit-highlighted value of the search settings, type the following syntax:

stsadm -o setosearchsetting -ssp SharedServices1 -setting "Setting:Schema:HitHighlight_Contains_Clause" -value False

See Also

Concepts

Getosearchsetting: Stsadm operation (Office SharePoint Server)