Skip to content

Commit

Permalink
spotless check fix; changelog
Browse files Browse the repository at this point in the history
Signed-off-by: Petar Dzepina <[email protected]>
  • Loading branch information
petardz authored and Petar Dzepina committed Jan 22, 2024
1 parent 4a48124 commit 2616db2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 2616db2

Please sign in to comment.