percolator: use correct version.
This commit is contained in:
parent
88d456989e
commit
a3d1248014
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue