diff --git a/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneFullTextIndexEngine.java b/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneFullTextIndexEngine.java index 343c7792bc2..74a63314ad7 100644 --- a/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneFullTextIndexEngine.java +++ b/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneFullTextIndexEngine.java @@ -254,6 +254,7 @@ public Query buildQuery(Object query) { @Override public Object getInTx(Object key, OLuceneTxChanges changes) { + updateLastAccess(); openIfClosed(); try { diff --git a/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneIndexEngineAbstract.java b/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneIndexEngineAbstract.java index c4d4d309380..2e72243c8f3 100644 --- a/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneIndexEngineAbstract.java +++ b/lucene/src/main/java/com/orientechnologies/lucene/engine/OLuceneIndexEngineAbstract.java @@ -383,6 +383,7 @@ public Analyzer queryAnalyzer() { @Override public boolean remove(Object key, OIdentifiable value) { + openIfClosed(); updateLastAccess(); Query query = deleteQuery(key, value); @@ -503,6 +504,7 @@ public void load(String indexName, OBinarySerializer valueSerializer, boolean is @Override public void clear() { + updateLastAccess(); openIfClosed(); try { reopenToken = mgrWriter.deleteAll(); @@ -550,6 +552,8 @@ public long size(final ValuesTransformer transformer) { } protected void release(IndexSearcher searcher) { + updateLastAccess(); + openIfClosed(); try { searcherManager.release(searcher); } catch (IOException e) {