Configure Web Content Manager search options
You can edit the following search options to manage how the search service works with Web Content Manager search forms
- Edit the SearchService.properties file.
File location:
Windows™
WP_PROFILE/PortalServer/wcm/shared/app/config/wcmservices
UNIX™
WP_PROFILE/PortalServer/wcm/shared/app/config/wcmservices
i
WP_PROFILE/PortalServer/wcm/shared/app/config/wcmservices
- Specify values for the search parameters.
Parameters for the search service in Web Content Manager.
Parameter Details SearchService.DateFormatString This is used to set the date format when entering dates in search forms and for displaying search results. Enter a supported Java date format string. If this property is not set, then the default format is MMM dd yyyy HH:mm:ss z. SearchService.RecrawlInterval This is the "recrawl interval" in hours. SearchService.BrokenLinksExpirationAge Default."Broken links expiration age" in days. SearchService.MetaFields This is used to specify additional elements to crawl when searching for Metadata. The format for this parameter value is: elementName,key1
To specify more than one Metadata field maps, use the following format: elementName1,key1;elementName2,key2;elementName3,key3
For example, to crawl for Metadata in a text element named metaText:
- SearchService.MetaFields=metaText,meta
- elementName is the name of element you would like to search for Metadata. Any valid element with that name in a searchable site area or content item will be crawled.
- key is the "key" that is specified in an element tag used as part of a search element design. In the example above, the key of "meta" has been used. To render the content of the metaText element in a search element design, you would use the following tag: <Element context="autoFill" type="content" key="meta"/>
- Only text elements and short text elements can be searched.
- Only site areas that have been configured to be searchable will be crawled.
SearchService.SearchSeed.ExcludeFileAttachments=false Set this to "true" to prevent file resource component attachments from being included in the search results. If set to false, the files stored in file resource elements in content items can also be searched. Files stored in file resource elements in a site area can also be searched so long as a default content item has been selected.
- Save the SearchService.properties file.
- Restart the portal for the new settings to take effect.
Parent
Enable search for web content
Previous
Indexing web content
Previous
Configure the Search and Browse portlet to search for web content
December 14, 2011
Apr 1, 2011 1:26:17 PM
});