From a3d1248014c811c377b109afeabd08d5ff2f6cb6 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 2 Aug 2017 10:37:59 +0200 Subject: [PATCH] percolator: use correct version. --- .../org/elasticsearch/percolator/PercolatorFieldMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/percolator/src/main/java/org/elasticsearch/percolator/PercolatorFieldMapper.java b/modules/percolator/src/main/java/org/elasticsearch/percolator/PercolatorFieldMapper.java index 22da6de2f78..7c386c7fcd2 100644 --- a/modules/percolator/src/main/java/org/elasticsearch/percolator/PercolatorFieldMapper.java +++ b/modules/percolator/src/main/java/org/elasticsearch/percolator/PercolatorFieldMapper.java @@ -343,7 +343,7 @@ public class PercolatorFieldMapper extends FieldMapper { static void createQueryBuilderField(Version indexVersion, BinaryFieldMapper qbField, QueryBuilder queryBuilder, ParseContext context) throws IOException { - if (indexVersion.onOrAfter(Version.V_6_0_0_beta1)) { + if (indexVersion.onOrAfter(Version.V_6_1_0)) { try (ByteArrayOutputStream stream = new ByteArrayOutputStream()) { try (OutputStreamStreamOutput out = new OutputStreamStreamOutput(stream)) { out.setVersion(indexVersion);