Creating a FreeTextSearchable Multilingual Text Property

By default, you cannot use Commerce Server Business Desk to specify the freetextsearchable property for a multilingual text property. However, you can set the FreeTextSearchable property using the CatalogManager object, as shown in the following code sample:

Dim oCatalogManager
Dim propertyName
Set oCatalogManager = CreateObject(“Commerce.CatalogManager”)
oCatalogManager.Initialize “connection string to the catalog database”, -1
Set propertyName = “MyProperty”
Set Rs = oCatalogManager.GetPropertyAttributes(propertyName)
Rs(“IsFreeTextSearchable”)= true
oCatalogManager.SetPropertyAttributes Rs

Copyright © 2005 Microsoft Corporation.
All rights reserved.