Created
March 26, 2019 06:39
-
-
Save vkurdin/6ea8a35cfd003736f5d8a4b718f6bc41 to your computer and use it in GitHub Desktop.
stu-elastic/slow-query-simulator 6.6.2 patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build.gradle b/build.gradle | |
index e4026eb..5949189 100644 | |
--- a/build.gradle | |
+++ b/build.gradle | |
@@ -6,7 +6,7 @@ buildscript { | |
} | |
dependencies { | |
- classpath "org.elasticsearch.gradle:build-tools:6.0.1" | |
+ classpath "org.elasticsearch.gradle:build-tools:6.6.2" | |
} | |
} | |
apply plugin: 'elasticsearch.esplugin' | |
diff --git a/src/main/java/org/elasticsearch/slowquerysimulator/SlowQuerySimulatorBuilder.java b/src/main/java/org/elasticsearch/slowquerysimulator/SlowQuerySimulatorBuilder.java | |
index 6b0b1a0..d26eed5 100644 | |
--- a/src/main/java/org/elasticsearch/slowquerysimulator/SlowQuerySimulatorBuilder.java | |
+++ b/src/main/java/org/elasticsearch/slowquerysimulator/SlowQuerySimulatorBuilder.java | |
@@ -108,6 +108,11 @@ public class SlowQuerySimulatorBuilder extends AbstractQueryBuilder<SlowQuerySim | |
} | |
return null; | |
} | |
+ | |
+ @Override | |
+ public boolean isCacheable(LeafReaderContext ctx) { | |
+ return false; | |
+ } | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment