[opencms-dev] Help: Lucene Search CronIndexManager

Arthur Visser arthur.visser at student.groept.be
Mon Apr 25 10:05:37 CEST 2005


Uwe,

Thanks for your reply. I had tried the Windows path earlier.
Same result. (must have send an older registry file by
accident, sorry). So using
<indexdir>C:\luceneindex\</indexdir> doesn't help. See error
message below; He seems to 'crash' at the FSDirectory.create
point everytime.....

I know about using Alt-Enter on a folder in XP Home, but
this only gives me very basic options to set permissions
(only sharing /private) and the 'Read Only' box is always
'on' for some reason. Even when I untick the box and go back
to the folder later it is again 'read only'. 

Any suggestions?


Error message in Fileviewer:
[25.04.2005 09:58:10] <opencms_cronscheduler> Starting job
for com.opencms.core.CmsCronEntry{58 9 * * * admin
Administrators
net.grcomputing.opencms.search.lucene.CronIndexManager
createIndex=true}
[25.04.2005 09:58:10] <opencms_info> 
=====IndexManager===========================================
==================
[25.04.2005 09:58:10] <opencms_info> Analyzer:
org.apache.lucene.analysis.standard.StandardAnalyzer
[25.04.2005 09:58:10] <opencms_info> Extension map exists to
handle plaintext
[25.04.2005 09:58:10] <opencms_info> Extension map exists to
handle taggedtext
[25.04.2005 09:58:10] <opencms_info> Page DocumentFactory
loaded
[25.04.2005 09:58:10] <opencms_cronscheduler> Error running
job for com.opencms.core.CmsCronEntry{58 9 * * * admin
Administrators
net.grcomputing.opencms.search.lucene.CronIndexManager
createIndex=true} Error: java.lang.NullPointerException
	at
org.apache.lucene.store.FSDirectory.create(FSDirectory.java:
172)
	at
org.apache.lucene.store.FSDirectory.<init>(FSDirectory.java:
151)
	at
org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory
.java:132)
	at
org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory
.java:113)
	at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:
151)
	at
net.grcomputing.opencms.search.lucene.IndexManager.doIndex(U
nknown Source)
	at
net.grcomputing.opencms.search.lucene.CronIndexManager.launc
h(Unknown Source)
	at
com.opencms.core.CmsCronScheduleJob.run(CmsCronScheduleJob.j
ava:68)

Registry file:

<luceneSearch>
		
   <mergeFactor>100000</mergeFactor>
   <permCheck>true</permCheck>
   <indexDir>C:\LuceneIndex\</indexDir>
<analyzer>org.apache.lucene.analysis.standard.StandardAnalyz
er</analyzer>
 <subsearch>true</subsearch>	
<project>online</project>
   	<docFactories>
   
	
       <docFactory enabled="true" type="page">
 
<class>net.grcomputing.opencms.search.lucene.PageDocument</c
lass>
       </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>
 
<class>net.grcomputing.opencms.search.lucene.TaggedPlainDocu
ment</class>
          </fileType>
       </docFactory>

	
       <docFactory enabled="false" type="jsp">
 
<class>net.grcomputing.opencms.search.lucene.JspDocument</cl
ass>
       </docFactory>

	       <docFactory enabled="false" type="news">
 
<class>net.grcomputing.opencms.search.lucene.NewsDocument</c
lass>
       </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="/BPS/">
         <section>Root</section>
         <subsearch>true</subsearch>
       </directory>
   </directories>

     <contentDefinitions>
     </contentDefinitions>
</luceneSearch>

 
Arthur 


-----Oorspronkelijk bericht-----
Van: uwederkoenig at web.de [mailto:uwederkoenig at web.de] 
Verzonden: 25 April 2005 01:41
Aan: arthur.visser at student.groept.be; The OpenCms mailing
list
Onderwerp: Re: [opencms-dev] Help: Lucene Search
CronIndexManager



Arthur, 

the problem is your config: 

>    <indexDir>/opt/luceneindex</indexDir>
> 
>    <!-- <indexDir>F:\luceneindex\</indexDir> -->

/opt/luceneindex is a NOT a windows-path, but for
*nix-systems. 
C:\luceneindex\ or similar is for windows. 
Regards, 


Uwe König

PS: access-rights under windows: focus item in your
filemanager and
press ALT+Enter. 







More information about the opencms-dev mailing list