ModeShape/modeshape — pull request #327 by rhauch (2012-03-12 17:51:00+00:00)
Title: MODE-1420 Fixed unwanted Hibernate Search warning messages

Hibernate Search's `SearchConfiguration` class defines a `isTransactionManagerExpected()` method that dictates whether the warning messages should be logged (and that appears to be the only way in which this method is used).

So far, ModeShape's `org.modeshape.jcr.query.lucene.LuceneSearchConfiguration` implementation has returned `true`. But this method should return `false`, since the re-indexing operations are not performed within a transaction, so Hibernate Search shouldn't always expect a transaction. Simply making this change makes the problematic log messages disappear, but doesn't otherwise affect any functionality.

All unit and integration tests pass with these changes.