lucene search / index

I know webmethods MWS uses lucene search because it keeps having two errors pop up in the system logs:

  1. 2009-08-27 10:37:28 PDT (search : WARN) - read past EOF
    java.io.IOException: read past EOF
    at org.apache.lucene.index.CompoundFileReader$CSInputStream.readInternal(CompoundFileReader.java:218)
    at org.apache.lucene.store.InputStream.readBytes(InputStream.java:61)
    at org.apache.lucene.index.SegmentReader.norms(SegmentReader.java:356)
    at org.apache.lucene.index.SegmentReader.norms(SegmentReader.java:323)
    at org.apache.lucene.index.SegmentMerger.mergeNorms(SegmentMerger.java:422)
    at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:94)
    at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:487)
    at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:366)
    at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:381)
    at com.webmethods.portal.service.search.impl.lucene.LuceneSearchService.mergeRamDirectoryToDisk(LuceneSearchService.java:1178)
    at com.webmethods.portal.service.search.impl.lucene.LuceneSearchService.mergeAllRamDirectoriesToDisk(LuceneSearchService.java:1211)
    at com.webmethods.portal.service.search.impl.lucene.LuceneSearchService$MergeThread.run(LuceneSearchService.java:207)
    2009-08-27 10:38:10 PDT (search : WARN) - E:\webMethods712\MWS\server\default\data\logging\portalLoggingLibrary_5k.fnm (The system cannot find the file specified)

2)2009-08-27 10:39:10 PDT (search : WARN) - E:\webMethods712\MWS\server\default\data\logging\portalLoggingLibrary_5k.fnm (The system cannot find the file specified)
java.io.FileNotFoundException: E:\webMethods712\MWS\server\default\data\logging\portalLoggingLibrary_5k.fnm (The system cannot find the file specified)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:212)
at org.apache.lucene.store.FSInputStream$Descriptor.(FSDirectory.java:376)
at org.apache.lucene.store.FSInputStream.(FSDirectory.java:405)
at org.apache.lucene.store.FSDirectory.openFile(FSDirectory.java:268)
at org.apache.lucene.index.FieldInfos.(FieldInfos.java:53)
at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:109)
at org.apache.lucene.index.SegmentReader.(SegmentReader.java:94)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:480)
at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:366)
at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:381)
at com.webmethods.portal.service.search.impl.lucene.LuceneSearchService.mergeRamDirectoryToDisk(LuceneSearchService.java:1178)
at com.webmethods.portal.service.search.impl.lucene.LuceneSearchService.mergeAllRamDirectoriesToDisk(LuceneSearchService.java:1211)
at com.webmethods.portal.service.search.impl.lucene.LuceneSearchService$MergeThread.run(LuceneSearchService.java:207)

My question is two fold

  1. How do I fix these annoying errors? Do I have to open a SR?
  2. I am uploading files using MWS’s attachment - how do I tell Lucene engine to search these files - PDF or DOC - or can it even scan these type or can it even be told other areas to scan?

Hi,

In my case, I deleted the content of:

…/MWS/server/default/data/logging/portalLoggingLibrary/

And Resync the Logging Search Index, logging as SysAdmin navigating

Administration > Administration Dashboard > Content > Search Admin

It should recreate the file in the portalLoggingLibrary with the correct names.

Thanks - opened a SR and they suggested the same and that fixed it and second question didn’t get answered which is:
2) I am uploading files using MWS’s attachment - how do I tell Lucene engine to search these files - PDF or DOC - or can it even scan these type or can it even be told other areas to scan?