by InShaneee » Tue Feb 15, 2011 8:42 am
I've had a lot of issues with search as well in recent updates. Particularly when adding large amounts of music, then clicking 'update search index now' doesn't seem to actually update the search index (once the update is complete, the new songs still do not show up in search, even after refreshing the browser window). Sometimes, I'm finding that manually updating the search index is even going so far as to crash the SubSonic service.
Edit: I've just tried rebuilding the index from scratch, and it does pick up all the music I added recently, so I doubt it could be an issue with the music itself.
Edit2: Added some more music and manually updated the index, and the new stuff still isn't showing up in searches.
Edit3: I checked my logs, and found this:
[2011-02-15 22:56:18,437] INFO SearchService - Updating Lucene search index.
[2011-02-15 22:56:23,484] ERROR LuceneSearchService - Failed to create Lucene search index.
java.lang.OutOfMemoryError: Java heap space
at org.apache.lucene.index.TermsHashPerField.rehashPostings(TermsHashPerField.java:522)
at org.apache.lucene.index.TermsHashPerField.add(TermsHashPerField.java:442)
at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:93)
at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:246)
at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:826)
at org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:802)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1998)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1972)
at net.sourceforge.subsonic.service.LuceneSearchService.createIndex(LuceneSearchService.java:93)
at net.sourceforge.subsonic.service.SearchService.doCreateIndex(SearchService.java:159)
at net.sourceforge.subsonic.service.SearchService.access$000(SearchService.java:60)
at net.sourceforge.subsonic.service.SearchService$1.run(SearchService.java:113)