
bobo-browse - issue #35
ParallelReader supplied to BoboIndexReader.getInstance causes UnsupportedOperationException
What steps will reproduce the problem? 1. Create an org.apache.lucene.index.ParallelReader with readers added as appropriate. 2. Call BoboIndexReader.getInstance(...) with the newly created ParallelReader and facetHandlers as appropriate.
What is the expected output? Lack of exception. What do you see instead? 'java.lang.UnsupportedOperationException: This reader does not support this method.'
What version of the product are you using? 2.5.0
On what operating system? OS X and Ubuntu
Please provide any additional information below. This bug appears to be as a result of bug fix bobo-31
Comment #1
Posted on Sep 30, 2010 by Happy HippoAs seen by stack trace below the exception is caused by the call to _dir = reader.directory(); on line 548. A ParallelReader does not have a directory assigned to it.
Caused by: java.lang.UnsupportedOperationException: This reader does not support this method. at org.apache.lucene.index.IndexReader.directory(IndexReader.java:592) at com.browseengine.bobo.api.BoboIndexReader.(BoboIndexReader.java:548) at com.browseengine.bobo.api.BoboIndexReader.(BoboIndexReader.java:526) at com.browseengine.bobo.api.BoboIndexReader.getInstance(BoboIndexReader.java:140) at com.browseengine.bobo.api.BoboIndexReader.getInstance(BoboIndexReader.java:132)
Status: New
Labels:
Type-Defect
Priority-Medium