[opencms-dev] Lucene 1.5 ...........
Mithun P R
MithunP at ibsplc.com
Mon May 24 10:52:01 CEST 2004
Hi
I'm trying to index my files in OpemCMS. For this, i have
imported Lucene 1.5 into my system (OpenCMS).
What is to be done after importing the module. I'm not sure what
to do.
If anyone knows what has to be done please inform me.
i created a file called "lucene-registry" under $TOMCAT_HOME/webapps/opencms/WEB-INF/config/
The content of the XML file is given below
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!-- lucene-registry.xml -->
<luceneSearch>
<mergeFactor>100000</mergeFactor>
<permCheck>true</permCheck>
<!-- <indexDir>/opt/lucene/index/opencms/</indexDir>
-->
<indexDir>D:\lucene\TBOKCMS</indexDir>
<analyzer>org.apache.lucene.analysis.standard.StandardAnalyzer</analyzer>
<subsearch>true</subsearch>
<project>online</project>
<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>
<class>net.grcomputing.opencms.search.lucene.TaggedPlainDocument</class>
</fileType>
</docFactory>
<docFactory enabled="true" type="binary">
<fileType name="Word">
<extension>.doc</extension>
<class>net.grcomputing.opencms.search.lucene.WordDocument</class>
</fileType>
<fileType name="PDF">
<extension>.pdf</extension>
<class>net.grcomputing.opencms.search.lucene.PDFDocument</class>
</fileType>
</docFactory>
<docFactory enabled="false" type="jsp">
<class>net.grcomputing.opencms.search.lucene.JspDocument</class>
</docFactory>
<docFactory enabled="false" type="news">
<class>net.grcomputing.opencms.search.lucene.NewsDocument</class>
</docFactory>
<docFactory enabled="false" type="forum">
<class>de.wfnetz.opencms.modules.forum.ContributionDocument</class>
</docFactory>
<docFactory enabled="false" type="XML Template"/>
</docFactories>
<directories>
<directory location="/">
<section>Root</section>
<subsearch>true</subsearch>
</directory>
</directories>
<contentDefinitions>
<contentDefinition type="news">
<class>com.opencms.modules.homepage.news.NewsContentDefinition</class>
<initClass>net.grcomputing.opencms.search.lucene.NewsInitialization</initClass>
<listMethod name="getNewsList">
<param type="java.lang.Integer">1</param>
<param type="java.lang.String">-1</param>
</listMethod>
<page uri="/news.html?__element=entry">
<param method="getIntId" name="newsid"/>
</page>
</contentDefinition>
<contentDefinition type="forum">
<class>de.wfnetz.opencms.modules.forum.ContributionContentDefinition</class>
<listMethod name="getSortedList">
<param type="java.lang.String"/>
</listMethod>
<page
uri="/forum.html?forumtemplate=viewcontributionentry">
<param method="getId" name="conid"/>
</page>
</contentDefinition>
</contentDefinitions>
</luceneSearch>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Then i Scheduled a task as 15 14 * * * admin Administrators net.grcomputing.opencms.search.lucene.CronIndexManager
"createIndex=true,registry=/WEB-INF/config/lucene-registry.xml"
If there is any error or anything additional to be done to this. Please
inform me.
regards
Mithun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040524/798e12ff/attachment.htm>
More information about the opencms-dev
mailing list