Ok, well, Hibernate does allow a backdoor to directly access the
Directory in order to give Bobo something to work with.
protected BoboIndexReader getBoboReader(final Class<?> clazz)
throws IOException {
TransactionTemplate transTemplate = new TransactionTemplate(
transactionManager);
IndexReader i = transTemplate
.execute(new TransactionCallback<IndexReader>() {
@Override
public IndexReader doInTransaction(
TransactionStatus status) {
FullTextSession fts = Search
.getFullTextSession(getSessionFactory()
.getCurrentSession());
MutableSearchFactory factory = (MutableSearchFactory)
fts.getSearchFactory();
DirectoryBasedIndexManager mgr = (DirectoryBasedIndexManager)
factory.getAllIndexesManager().getIndexManager(clazz.getCanonicalName());
try{
return
IndexReader.open(mgr.getDirectoryProvider().getDirectory(), true);
}catch(IOException io){
log.error("Error opening indexreader for Bobo", io);
}
return null;
}
});
return BoboIndexReader.getInstance(
i,
sfFactory.getUnfilteredList(), null);
}
}
Of course, what would be really cool is a BoboImplementation of the
Hibernate IndexManager. That could operate akin to Zoie.
Cheers,
Marc
On Feb 1, 1:38 pm, John Wang <
john.w...@gmail.com> wrote:
> Hi Marc:
>
> This bug is not yet fixed.
>
> -John
>