Customizing metadata field search support
With the search seedlist 1.0 support, custom metadata fields that are specified on content items are added to the search seedlist as metadata information, without requiring the metadata to appear in the HTML source for the content items.
-
Log in to the WebSphere® Integrated Solutions Console.
-
Click Resources > Resource Environment > Resource Environment Providers.
-
Click WP ConfigService.
-
Under Additional Properties, click Custom Properties.
-
Click New, and enter the property name wcm.config.seedlist.metakeys, and set the string value to a comma-delimited list of your own metadata (for example, <metakey1, metakey2>).
Add the names of the text element from your content to include in the search results to the
wcm.config.seedlist.metakeys
property. If you want to add more than one text element, separate them with commas. The name of the text element on your content item included in the search seedlist must match the name that is configured for this configuration key.For example, set
wcm.config.seedlist.metakeys=language,region
in the WP ConfigService resource environment provider, and add a HCL Web Content Manager text component as an element with the namelanguage
to a content item or authoring template. In your content item, you can enter the valuegerman
into the text component for the language. After you save the content item, the search crawler will add the valuegerman
into a metadata field that is calledlanguage
within the search seedlist. Then, you can filter the search results based on your metadata information. -
Click OK, and save the changes to the master configuration.
-
Restart the portal.