Skip to content

Commit

Permalink
fix #61 in develop
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Sep 22, 2015
1 parent 8af7e6c commit 448842f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ public class OLuceneIndexFactory implements OIndexFactory, ODatabaseLifecycleLis
OLuceneSpatialManager spatialManager;

public OLuceneIndexFactory() {
this(false);
}

public OLuceneIndexFactory(boolean manual) {
spatialManager = new OLuceneSpatialManager(OShapeFactory.INSTANCE);
Orient.instance().addDbLifecycleListener(this);
if (!manual)
Orient.instance().addDbLifecycleListener(this);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void startup() {
super.startup();
Orient.instance().addDbLifecycleListener(this);

OIndexes.registerFactory(new OLuceneIndexFactory());
OIndexes.registerFactory(new OLuceneIndexFactory(true));

registerOperators();

Expand Down

0 comments on commit 448842f

Please sign in to comment.