How can I influence the Portal Search web crawler summary dynamically?

Is it possible to influence the markup indexed and put into the summary when using web search of the crawler? E.g. when using the web crawler against a default woodburn site the summary would contain this information:

Yes it is possible. So the search results are displayed the following way:

The crawler from time to time (configurable) crawls the Portal URL and all of its links and creates the search index based on the markup received. Later on when an end user searches for a term the index is queried and the results are being displayed. Typically the summarizer will look for the initial markup to use in the summary.

To change what is being displayed:

The user agent that the Portal web crawler uses is: JavaCrawler/1.1

One can adjust the theme or other code like theme modules by checking the crawler and producing different markup.

I.e. Sample code:

<%

String userAgent = request.getHeader("User-Agent");

if(!userAgent.equals("JavaCrawler/1.1"))

{

%>

<%-- current markup --%>

<%

}

else{

%>

<%-- special markup for the crawler--%>

<div>Hello World boost</div>

<%

}

%>

So with this in place the summary could look like:

That is very good information to have Thomas. You can also customize values to be returned by a search query by manipulating this property "wcm.config.seedlist.metakeys" in the WP ConfigService. This will only be applied when using the seedlist for the server which is the manner that the Portal/WCM search crawler should be used when crawling a Portal. See this URL for the specifics:

https://help.hcl-software.com/digital-experience/8.5/wcm/wcm_dev_search_custmeta.html