percolator: use correct version.

This commit is contained in:
Martijn van Groningen 2017-08-02 10:37:59 +02:00
parent 88d456989e
commit a3d1248014
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ public class PercolatorFieldMapper extends FieldMapper {
static void createQueryBuilderField(Version indexVersion, BinaryFieldMapper qbField, static void createQueryBuilderField(Version indexVersion, BinaryFieldMapper qbField,
QueryBuilder queryBuilder, ParseContext context) throws IOException { 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 (ByteArrayOutputStream stream = new ByteArrayOutputStream()) {
try (OutputStreamStreamOutput out = new OutputStreamStreamOutput(stream)) { try (OutputStreamStreamOutput out = new OutputStreamStreamOutput(stream)) {
out.setVersion(indexVersion); out.setVersion(indexVersion);