AW: [opencms-dev] Lucene search module.

Mario Wallnofer mario.wallnoefer at msk-informatik.at
Wed Aug 20 12:25:00 CEST 2003


Did you check the permission on that directory ?

mario
  -----Ursprungliche Nachricht-----
  Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org]Im Auftrag von Abhishek Tiwari
  Gesendet: Mittwoch, 20. August 2003 11:39
  An: opencms-dev at opencms.org
  Betreff: [opencms-dev] Lucene search module.


  Hi all,

  For this search module I have created a directory on the root folder of
opencms and mentioned the path of the indexdir(which has all the index files
in it) in the registry.xml .
  Here is a part of my registry.xml
  ***************************************************
  <luceneSearch>
              <mergeFactor>100000</mergeFactor>
              <permCheck>true</permCheck>
              <indexDir>/luceneindex/</indexDir>

<analyzer>org.apache.lucene.analysis.standard.StandardAnalyzer</analyzer>
              <subsearch>true</subsearch>
              <project>online</project>
              <docFactories>
                  <pageDocFactory enabled="true">

<class>net.grcomputing.opencms.search.lucene.PageDocument</class>
                  </pageDocFactory>
                  <plainDocFactory enabled="true">
                      <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>
                  </plainDocFactory>
                  <jspDocFactory enabled="true">

<class>net.grcomputing.opencms.search.lucene.JspDocument</class>
                  </jspDocFactory>
                  <xmlTemplateDocFactory enabled="false"/>
              </docFactories>
              <directories>
                  <directory location="/myfolder/">
                      <section>Test</section>
                      <subsearch>true</subsearch>
                  </directory>
              </directories>
          </luceneSearch>
      </system>

  *************************************************************
  Now the indexer is running fine indexing 5 files under "myfolder" and the
logfile viewer shows

  Successful launch of job com.opencms.core.CmsCronEntry{50 14 * * * Admin
Administrators net.grcomputing.opencms.search.lucene.CronIndexManager
createIndex=true} Message: CronIndexManager rebuilt the Lucene index on Wed
Aug 20 14:50:13 GMT+05:30 2003

  But still there is no file under the directory luceneindex after the
indexing gets over, I tried it 5-6 times but to no avail??
  Anybody having a clue abt it..

  Thanks,
  Abhishek.





  _______________________________________________ This mail is send to you
from the opencms-dev mailing list To change your list options, or to
unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030820/1e025abd/attachment.htm>


More information about the opencms-dev mailing list