Fix failing percolator field mapper tests
This commit fixes some failing percolator field mapper tests from
upstream change 599a548998
.
This commit is contained in:
parent
d0765d0761
commit
c809671eb3
|
@ -215,7 +215,7 @@ public class PercolatorFieldMapperTests extends ESSingleNodeTestCase {
|
||||||
.field("query_field2", queryBuilder)
|
.field("query_field2", queryBuilder)
|
||||||
.endObject().bytes()
|
.endObject().bytes()
|
||||||
);
|
);
|
||||||
assertThat(doc.rootDoc().getFields().size(), equalTo(24)); // also includes all other meta fields
|
assertThat(doc.rootDoc().getFields().size(), equalTo(12)); // also includes all other meta fields
|
||||||
BytesRef queryBuilderAsBytes = doc.rootDoc().getField("query_field1.query_builder_field").binaryValue();
|
BytesRef queryBuilderAsBytes = doc.rootDoc().getField("query_field1.query_builder_field").binaryValue();
|
||||||
assertQueryBuilder(queryBuilderAsBytes, queryBuilder);
|
assertQueryBuilder(queryBuilderAsBytes, queryBuilder);
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ public class PercolatorFieldMapperTests extends ESSingleNodeTestCase {
|
||||||
.field("query_field", queryBuilder)
|
.field("query_field", queryBuilder)
|
||||||
.endObject().endObject().bytes()
|
.endObject().endObject().bytes()
|
||||||
);
|
);
|
||||||
assertThat(doc.rootDoc().getFields().size(), equalTo(20)); // also includes all other meta fields
|
assertThat(doc.rootDoc().getFields().size(), equalTo(9)); // also includes all other meta fields
|
||||||
BytesRef queryBuilderAsBytes = doc.rootDoc().getField("object_field.query_field.query_builder_field").binaryValue();
|
BytesRef queryBuilderAsBytes = doc.rootDoc().getField("object_field.query_field.query_builder_field").binaryValue();
|
||||||
assertQueryBuilder(queryBuilderAsBytes, queryBuilder);
|
assertQueryBuilder(queryBuilderAsBytes, queryBuilder);
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ public class PercolatorFieldMapperTests extends ESSingleNodeTestCase {
|
||||||
.endArray()
|
.endArray()
|
||||||
.endObject().bytes()
|
.endObject().bytes()
|
||||||
);
|
);
|
||||||
assertThat(doc.rootDoc().getFields().size(), equalTo(20)); // also includes all other meta fields
|
assertThat(doc.rootDoc().getFields().size(), equalTo(9)); // also includes all other meta fields
|
||||||
queryBuilderAsBytes = doc.rootDoc().getField("object_field.query_field.query_builder_field").binaryValue();
|
queryBuilderAsBytes = doc.rootDoc().getField("object_field.query_field.query_builder_field").binaryValue();
|
||||||
assertQueryBuilder(queryBuilderAsBytes, queryBuilder);
|
assertQueryBuilder(queryBuilderAsBytes, queryBuilder);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue