From 2616db2015bf94ada61fe7f6f51493ea5144d43b Mon Sep 17 00:00:00 2001 From: Petar Dzepina Date: Fri, 27 Jan 2023 01:09:35 +0100 Subject: [PATCH] spotless check fix; changelog Signed-off-by: Petar Dzepina --- .../index/query/QueryStringQueryBuilderTests.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/server/src/test/java/org/opensearch/index/query/QueryStringQueryBuilderTests.java b/server/src/test/java/org/opensearch/index/query/QueryStringQueryBuilderTests.java index 749a5d4ce9004..46003b8dad4f0 100644 --- a/server/src/test/java/org/opensearch/index/query/QueryStringQueryBuilderTests.java +++ b/server/src/test/java/org/opensearch/index/query/QueryStringQueryBuilderTests.java @@ -465,17 +465,16 @@ public void testExtractAllUsedFields() { assertTrue(allUsedFields.contains(KEYWORD_FIELD_NAME)); // fields with field prefix - allUsedFields = queryStringQuery("654654356") - .fields(Map.of(TEXT_FIELD_NAME, 1.0f, OBJECT_FIELD_NAME + ".*", 1.0f)) + allUsedFields = queryStringQuery("654654356").fields(Map.of(TEXT_FIELD_NAME, 1.0f, OBJECT_FIELD_NAME + ".*", 1.0f)) .extractAllUsedFields(createShardContext()); assertTrue(allUsedFields.contains(TEXT_FIELD_NAME)); assertTrue(allUsedFields.contains(OBJECT_FIELD_NAME + "." + DATE_FIELD_NAME)); assertTrue(allUsedFields.contains(OBJECT_FIELD_NAME + "." + INT_FIELD_NAME)); // field prefix in query_string with bear token and fields combo - allUsedFields = queryStringQuery(TEXT_FIELD_NAME + "\\*:test 12345") - .fields(Map.of(INT_FIELD_NAME, 1.0f, OBJECT_FIELD_NAME + ".*", 1.0f)) - .extractAllUsedFields(createShardContext()); + allUsedFields = queryStringQuery(TEXT_FIELD_NAME + "\\*:test 12345").fields( + Map.of(INT_FIELD_NAME, 1.0f, OBJECT_FIELD_NAME + ".*", 1.0f) + ).extractAllUsedFields(createShardContext()); assertTrue(allUsedFields.contains(TEXT_FIELD_NAME)); assertTrue(allUsedFields.contains(KEYWORD_FIELD_NAME)); assertTrue(allUsedFields.contains(OBJECT_FIELD_NAME + "." + DATE_FIELD_NAME));