Bind OnlineReindexer.Factory in LuceneIndexModule
The OnlineReindexer.Factory is only bound in MultiVersionModule. This causes some of the acceptance tests to fail with the error "no implementation bound" because the SingleVersionModule is being used, which does not bind OnlineReindexer.Factory. Bind it in LuceneIndexModule instead, so it's used in both cases. Change-Id: I6df22bb405621485e5dcba2a5d0e0a14de372f8a
This commit is contained in:
@@ -46,6 +46,7 @@ public class LuceneIndexModule extends LifecycleModule {
|
||||
protected void configure() {
|
||||
bind(IndexConfig.class).toInstance(IndexConfig.createDefault());
|
||||
factory(LuceneChangeIndex.Factory.class);
|
||||
factory(OnlineReindexer.Factory.class);
|
||||
install(new IndexModule(threads));
|
||||
if (singleVersion == null && base == null) {
|
||||
install(new MultiVersionModule());
|
||||
@@ -57,7 +58,6 @@ public class LuceneIndexModule extends LifecycleModule {
|
||||
private class MultiVersionModule extends LifecycleModule {
|
||||
@Override
|
||||
public void configure() {
|
||||
factory(OnlineReindexer.Factory.class);
|
||||
listener().to(LuceneVersionManager.class);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user