Hi, I'm stuck running the tests from SearchManagerTest. If I run them individually, then all is OK.
However, if I run them all together (via Ant task or via Eclipse), then the following tests fail: testSimplesearch3, testTitleSearch, testTitleSearch2, at the assertEquals() regarding res.size() jspwikitests.log yields several exceptions like this one: java.io.IOException: Cannot overwrite: E:\tmp\testworkdir\lucene\_0.fdt at org.apache.lucene.store.FSDirectory.ensureCanWrite(FSDirectory.java:316) at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:305) at org.apache.lucene.index.FieldsWriter.<init>(FieldsWriter.java:83) at org.apache.lucene.index.StoredFieldsWriter.initFieldsWriter(StoredFieldsWriter.java:64) at org.apache.lucene.index.StoredFieldsWriter.finishDocument(StoredFieldsWriter.java:107) at org.apache.lucene.index.StoredFieldsWriter$PerDoc.finish(StoredFieldsWriter.java:151) at org.apache.lucene.index.DocumentsWriter$WaitQueue.writeDocument(DocumentsWriter.java:1404) at org.apache.lucene.index.DocumentsWriter$WaitQueue.add(DocumentsWriter.java:1424) at org.apache.lucene.index.DocumentsWriter.finishDocument(DocumentsWriter.java:1043) at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:772) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2060) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2034) at org.apache.wiki.search.LuceneSearchProvider.luceneIndexPage(LuceneSearchProvider.java:485) at org.apache.wiki.search.LuceneSearchProvider.updateLuceneIndex(LuceneSearchProvider.java:377) [...] Also, if I place writer.setInfoStream( System.out ); just after the writer is instantiated, I get several messages similar to this one: IFD [Wed Jun 20 00:20:07 CEST 2012; JSPWiki Lucene Indexer]: unable to remove file "_0.fdt": java.io.IOException: Cannot delete E:\tmp\testworkdir\lucene\_0.fdt; Will re-try later. Done a little googling and found that may be related to opening an IndexWriter on the index while there's another one open [1] or removing files while the index is open at that directory [2]. I'll continue looking at this tomorrow, but I was wondering if anyone else is experiencing this problem too. br, juan pablo [1]: http://www.gossamer-threads.com/lists/lucene/java-user/92262 [2]: http://www.gossamer-threads.com/lists/lucene/java-user/62201#62201