Increasing the size of the Keyword field

You can increase the size of fields in the Catalogs tool. For example, to use the catalog search relevancy feature you can increase the size of the Keyword field on the Catalogs tool Category page.

Procedure

In this example, the default size of the Keyword field is increased from the default value of 254 to a value of 32500.
Update the CatalogCommonObjectDefinitions.xml file.
  1. Start HCL Commerce Developer.
  2. Open the J2EE perspective and select the Enterprise Explorer view.
  3. Go to Dynamic Web Project > LOBTools > WebContent > config > commerce > catalog > objectDefinitions.
  4. Open the CatalogCommonObjectDefinitions.xml file for editing.
    Locate the following snippet in the Keyword section:
    
    <!--- Keyword -->
       <PropertyDefinition displayName="${catalogResources.catalogGroupDescriptionKeywords_DisplayName}" 
    maximumSize="254" propertyName="keyword" type="string"/>
    
    Change the maximumSize value:
    
    <!--- Keyword -->    
       <PropertyDefinition displayName="${catalogResources.catalogGroupDescriptionKeywords_DisplayName}" 
    maximumSize="32500" propertyName="keyword" type="string"/>
    
    For long description, locate the following snippet in the CatalogCommonObjectDefinitions.xml file.
    <PropertyDefinition displayName="${catalogResources.catalogEntryDescriptionShortDescription_DisplayName}" 
    maximumSize="254" propertyName="sDesc" type="string"/>
    For short description, locate the following snippet in the CatalogCommonObjectDefinitions.xml file.
    <PropertyDefinition displayName="${catalogResources.catalogEntryDescriptionLongDescription_DisplayName}" 
    maximumSize="4000" propertyName="lDesc" type="string"/>
    Note: The maximumSize attribute value for long and short descriptions can be changed to match the desired maximum size.
  5. Save your changes and close the file.