Share via


FreeTextSearchPhrase Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the free text search phrase used for the performing fulltext searches.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Property FreeTextSearchPhrase As String
'Usage
Dim instance As CatalogSearch
Dim value As String

value = instance.FreeTextSearchPhrase

instance.FreeTextSearchPhrase = value
public string FreeTextSearchPhrase { get; set; }
public:
property String^ FreeTextSearchPhrase {
    String^ get ();
    void set (String^ value);
}
public function get FreeTextSearchPhrase () : String
public function set FreeTextSearchPhrase (value : String)

Property Value

Type: System..::.String
A System.String that contains the free-text search phrase used for the search.

Exceptions

Exception Condition
ValidationException

The value is invalid.

Remarks

The FreeTextSearchPhrase property contains the free-text search phrase used for the search. You can perform fulltext searches on catalogs and categories by specifying a search phrase. The search phrase should be prefixed by N to allow searching Unicode content. For example string searchPhrase = @"N'books and cds'"; You can specify the AND operator in the search phrase to return catalog items that contain all the words in the search phrase. You can also perform wild card searches by suffixing the search phrase with *. For example to return all the catalog items that begin with book you should specify string searchPhrase = @"N'books\*'";

If the UseAdvanceFreeTextSearch property is set to true, then SQLFreeText clause will be used in the search.

Permissions

See Also

Reference

CatalogSearch Class

CatalogSearch Members

Microsoft.CommerceServer.Catalog Namespace