AnsweredAssumed Answered

Problem with Lucene Search

Question asked by tbuktu on Oct 26, 2005
Latest reply on Nov 8, 2005 by derek
Hi,

I installed 1.0.0 RC2 (WAR download) into a local Tomcat on my Win32-laptop and have run into problems with Search not finding anything.

alfresco.log contains the following:


10:56:50,353 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network) - v1.0.0 (rc2); repository vunknown (pre 1.0.0 RC2)
10:58:00,094 ERROR [org.alfresco.repo.search.impl.lucene.LuceneBase] Error
java.io.FileNotFoundException: C:\java\apache-tomcat-5.5.12\bin\alf_data\lucene-indexes\workspace\SpacesStore\index\segments (Das System kann die angegebene Datei nicht finden)
   at java.io.RandomAccessFile.open(Native Method)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
   at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
   at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
   at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
   at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
   at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
   at org.apache.lucene.store.Lock$With.run(Lock.java:109)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:95)
   at org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:38)
   at org.alfresco.repo.search.impl.lucene.LuceneBase.getSearcher(LuceneBase.java:296)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl.updateFullTextSearch(LuceneIndexerImpl.java:1575)
   at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:166)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy4.index(Unknown Source)
   at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSIndexerJob.java:36)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
10:58:00,194 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.ftsIndexerJobDetail threw an unhandled Exception:
org.alfresco.repo.search.impl.lucene.LuceneIndexException: Failed FTS update
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl.updateFullTextSearch(LuceneIndexerImpl.java:1737)
   at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:166)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy4.index(Unknown Source)
   at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSIndexerJob.java:36)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Caused by: org.alfresco.repo.search.impl.lucene.LuceneIndexException: Failed to open IndexSarcher for ./alf_data/lucene-indexes\workspace\SpacesStore\\index\
   at org.alfresco.repo.search.impl.lucene.LuceneBase.getSearcher(LuceneBase.java:312)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl.updateFullTextSearch(LuceneIndexerImpl.java:1575)
   … 15 more
Caused by: java.io.FileNotFoundException: C:\java\apache-tomcat-5.5.12\bin\alf_data\lucene-indexes\workspace\SpacesStore\index\segments (Das System kann die angegebene Datei nicht finden)
   at java.io.RandomAccessFile.open(Native Method)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
   at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
   at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
   at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
   at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
   at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
   at org.apache.lucene.store.Lock$With.run(Lock.java:109)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:95)
   at org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:38)
   at org.alfresco.repo.search.impl.lucene.LuceneBase.getSearcher(LuceneBase.java:296)
   … 16 more
10:58:00,204 ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.ftsIndexerJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.repo.search.impl.lucene.LuceneIndexException: Failed FTS update]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
* Nested Exception (Underlying Cause) —————
org.alfresco.repo.search.impl.lucene.LuceneIndexException: Failed FTS update
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl.updateFullTextSearch(LuceneIndexerImpl.java:1737)
   at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:166)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:57)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
   at $Proxy4.index(Unknown Source)
   at org.alfresco.repo.search.impl.lucene.fts.FTSIndexerJob.execute(FTSIndexerJob.java:36)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Caused by: org.alfresco.repo.search.impl.lucene.LuceneIndexException: Failed to open IndexSarcher for ./alf_data/lucene-indexes\workspace\SpacesStore\\index\
   at org.alfresco.repo.search.impl.lucene.LuceneBase.getSearcher(LuceneBase.java:312)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl.updateFullTextSearch(LuceneIndexerImpl.java:1575)
   … 15 more
Caused by: java.io.FileNotFoundException: C:\java\apache-tomcat-5.5.12\bin\alf_data\lucene-indexes\workspace\SpacesStore\index\segments (Das System kann die angegebene Datei nicht finden)
   at java.io.RandomAccessFile.open(Native Method)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
   at org.apache.lucene.store.FSInputStream$Descriptor.<init>(FSDirectory.java:376)
   at org.apache.lucene.store.FSInputStream.<init>(FSDirectory.java:405)
   at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
   at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:40)
   at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:116)
   at org.apache.lucene.store.Lock$With.run(Lock.java:109)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:95)
   at org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:38)
   at org.alfresco.repo.search.impl.lucene.LuceneBase.getSearcher(LuceneBase.java:296)
   … 16 more

It looks like the lucene indexes have not been created properly.  Am I missing something?  I don't remember to have the same problem with Alfresco version prior to the release candidates.

Best regards,
Thorsten

Outcomes