From 20c77a2ac542fc6489843f69dabe24001d813d9e Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 17 Jan 2011 10:11:14 +0200 Subject: [PATCH] clear the percolator reader from the cache explicitly --- .../org/elasticsearch/index/percolator/PercolatorService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/percolator/PercolatorService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/percolator/PercolatorService.java index b96395e053c..c6d665e6c3b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/percolator/PercolatorService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/percolator/PercolatorService.java @@ -100,6 +100,7 @@ public class PercolatorService extends AbstractIndexComponent { throw new PercolatorException(index, "failed to load queries from percolator index"); } finally { searcher.release(); + indexService.cache().clear(searcher.reader()); } }