In order for the Sitemap Generator to create links to pages resulting from common search terms and navigation queries, you must supply these terms and queries in the search terms configuration file.
The location of the search terms configuration file is specified in the main
configuration file. At the top of the file, specify a default host, port, and
query using
<MDEXHOST>
,
<MDEXPORT>
, and
<DEFAULTQUERY>
tags. Below the default tags, each
<URL>
tag describes a unique search result link.
Each tag contains a set of Guided Search URL parameters in
<PARAM>
tags. An optional special parameter named
<QUERY>
overrides the default query for that
search result link.
Here is an example of a search terms configuration file:
<xml version=”1.0” encoding=”UTF-8”> <!--searchterms.xml Configuration of terms from which URLs can be generated --> <URLS> <MDEXHOST>localhost</MDEXHOST> <MDEXPORT>15000</MDEXPORT> <DEFAULTQUERY><![CDATA[N=0]]></DEFAULTQUERY> <URL> <PARAM NAME="QUERY"><![CDATA[N=18832]]></PARAM> <PARAM NAME="Ntt">DSLR</PARAM> </URL> <URL> <PARAM NAME="Ntt">Digital SLR</PARAM> </URL> <URL> <PARAM NAME="Ntt">PowerShot</PARAM> </URL> </URLS>
The Sitemap Generator creates a link based on the parameters within each
<URL>
tag. The formatting of the base portion of
the link (e.g. "localhost:8006/discover
") is configured in the
template configuration file. You can configure parameter formatting in the URL
formatting configuration file.
For example, if the
SEARCH_TERM_LINK
were defined as
localhost:8006/discover
in the template configuration
file, the Sitemap Generator might generate the following link from the first
URL in the above example:
http://localhost:8006/discover/browse?Ntt=DSLR
.
Note
If you have the
CanonicalLinkBuilder
enabled in your Assembler
Application, the
<PARAM>
elements for each URL should include
only those parameters specified in the
<bean
class="com.endeca.infront.navigation.url.event.CanonicalLinkBuilder">
bean in the Assembler context file.
Note that the un-encoded
N
values should be specified for
<QUERY>
values (e.g.
N=18832
).