AdvancedFreeTextSearchPhrase Property

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

Gets or sets the advanced 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 AdvancedFreeTextSearchPhrase As String
'Usage
Dim instance As CatalogSearch
Dim value As String

value = instance.AdvancedFreeTextSearchPhrase

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

Property Value

Type: System..::.String
A string containing the search phrase used for performing fulltext searches.

Exceptions

Exception Condition
ValidationException

The value is invalid.

Remarks

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\*'";

Permissions

See Also

Reference

CatalogSearch Class

CatalogSearch Members

Microsoft.CommerceServer.Catalog Namespace