Configurations done for rull test search.
The "startup.conf" file is located in the directory [LiveServer
installation directory]\WEB-INF\etc.
There are two settings in this file that are commented out by default
for search functionality.
The following settings are activated:
• reddot.searchengine.host
• reddot.searchengine.delivery
Here is the xml code that for search:
<?xml version="1.0" encoding="UTF-8"?>
<rde-dm:query cachingtime="0" context-tags="search-title;info-
author;info-date;info-publishdate" highlight="yes" item-tag="page"
tag="pages">
<rde-dm:query-verity><![CDATA[ [#request:search-text#] ]]></rde-
dm:query-verity>
</rde-dm:query>
Below is the xsl that used search results:
<?xml version="1.0" encoding="ISO-8859-1"?>
<fulltextsearch>
<xsl:variable name="ft-style"> font-family:Helvetica,Helv;font-size:
8pt </xsl:variable>
<xsl:template match="pages">
<xsl:value-of select="@hits"/> search results for <b>
<rde-dm:attribute mode="read" attribute="search-text"
source="request"/>
</b>
<p/>
<ol>
<xsl:for-each select="page">
<li>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:value-of select="search-title"/>(<xsl:value-of
select="name"/>)
</xsl:element>
<p/>
<b>Author Name: </b><xsl:value-of select="info-author"/>
<p/>
<b>Creation Date: </b><xsl:value-of select="info-date"/>
<p/>
<b>Publish Date: </b><xsl:value-of select="info-publishdate"/>
<p/>
<xsl:apply-templates select="./context"/>
<p/>
</li>
</xsl:for-each>
</ol>
</xsl:template>
<xsl:template match="rde-rd:ts">
<b>
<font color="#CC0000">
<xsl:apply-templates select="node()"/>
</font>
</b>
</xsl:template>
</fulltextsearch>
When iam giving the value,in the search_result.html page it is simply
displayed 2 time. Iam not getting any XML output. Please let me know
the issue
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.