When running with lucene >= 6.0.0 (till the lastest 7.0.0)
java.lang.NoSuchMethodError: org.apache.lucene.index.IndexWriterConfig.setWriteLockTimeout(J)Lorg/apache/lucene/index/IndexWriterConfig; at org.hibernate.search.store.spi.DirectoryHelper.initializeIndexIfNeeded(DirectoryHelper.java:57) at
Runs just fine with lucene 5.5.4. Deprecated Lucene method has been remove since Lucene-core 6.0.0. It says,
@deprecated Use {@link SleepingLockWrapper} if you want sleeping.
Documentation
/**
* Sets the maximum time to wait for a write lock (in milliseconds) for this
* instance. Note that the value can be zero, for no sleep/retry behavior.
*
* <p>Only takes effect when IndexWriter is first created.
* @deprecated Use {@link SleepingLockWrapper} if you want sleeping.
*/
@Deprecated
public IndexWriterConfig setWriteLockTimeout(long writeLockTimeout) {
this.writeLockTimeout = writeLockTimeout;
return this;
}
|