[opencms-dev] Lucene 1.5 ...........

Ernesto De Santis ernesto.desantis at colaborativa.net
Mon May 24 14:23:01 CEST 2004


Hi Mithun

> 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" 

I think that your error is here, the parameter registry it would have thus to be:
registry=config/lucene-registry.xml

and the lucene-registry.xml need the registry and system tags.
<?xml version="1.0" encoding="ISO-8859-1"?>
<registry>
    <system>
      <luceneSearch> 
             ........
      </luceneSearch> 
    </system>
</registry>


Bye
Ernesto.




  ----- Original Message ----- 
  From: Mithun P R 
  To: opencms-dev at opencms.org 
  Cc: mark.miller at hema.ch ; mbutcher at grcomputing.net 
  Sent: Monday, May 24, 2004 5:52 AM
  Subject: [opencms-dev] Lucene 1.5 ...........



  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



  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040524/125e0699/attachment.htm>


More information about the opencms-dev mailing list