[opencms-dev] Tagging JSP files using Lucene Search 1.4

Trevor Lee Trevor.Lee at 4Loop.com.au
Tue Nov 11 06:36:01 CET 2003


Hi

I was wondering how do I modify the registry.xml file so that it tags jsp
files as well?
Any urgent help in this matter would be greatly appreciated.

Currently i have the following in my registry.xml:
            <docFactories>
                <docFactory enabled="true" type="page">

<class>net.grcomputing.opencms.search.lucene.PageDocument</class>
                </docFactory>
                <docFactory enabled="true" type="plain">
                    <fileType name="plaintext">
                        <extension>.txt</extension>

<class>net.grcomputing.opencms.search.lucene.PlainDocument</class>
                    </fileType>
                    <fileType name="taggedtext">
                        <extension>.html</extension>
                        <extension>.htm</extension>
                        <extension>.xml</extension>
                        <!-- This will strip tags before processing -->

<class>net.grcomputing.opencms.search.lucene.TaggedPlainDocument</class>
                    </fileType>
                </docFactory>
                <docFactory enabled="true" type="binary">

<class>net.grcomputing.opencms.search.lucene.BodylessDocument</class>
                </docFactory>
                <docFactory enabled="true" type="jsp">

<class>net.grcomputing.opencms.search.lucene.JspDocument</class>
                </docFactory>
                <docFactory enabled="true" type="news">

<class>net.grcomputing.opencms.search.lucene.NewsDocument</class>
                </docFactory>
                <docFactory enabled="false" type="XML Template"/>
            </docFactories>
            <contentDefinitions>
                <contentDefinition type="news">

<class>com.opencms.modules.homepage.news.NewsContentDefinition</class>

<initClass>net.grcomputing.opencms.search.lucene.NewsInitialization</initCla
ss>
                    <listMethod name="getSortedList">
                        <param type="java.lang.String"/>
                    </listMethod>
                    <!-- <listMethod name="getNewsList">
                        <param type="java.lang.Integer">1</param>
                        <param type="java.lang.String">-1</param>
                    </listMethod>
					-->
                    <!-- <page
uri="/SoftwareMark/auth/news/news.jsp?__element=entry">
                        <param method="getIntId" name="id"/> -->
                    <page uri="/SoftwareMark/auth/news/news.jsp">
                        <param method="getIntId" name="id"/>
                    </page>
                </contentDefinition>
            </contentDefinitions>

Thanks in advance

Cheers
Trevor




More information about the opencms-dev mailing list