Skip to content

Commit 985d9d8

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 3d36b6f commit 985d9d8

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

server/src/main/java/org/elasticsearch/index/mapper/CompletionFieldMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ private void parse(
563563
}
564564
}
565565

566-
static class CompletionInputMetadataContainer {
566+
static class CompletionInputMetadataContainer {
567567
private final boolean hasContexts;
568568
private final List<CompletionInputMetadata> list;
569569
private CompletionInputMetadata single;
@@ -573,7 +573,7 @@ static class CompletionInputMetadataContainer {
573573
this.list = hasContexts ? new ArrayList<>() : null;
574574
}
575575

576-
void add(CompletionInputMetadata cm) {
576+
void add(CompletionInputMetadata cm) {
577577
if (hasContexts) {
578578
list.add(cm);
579579
} else {

server/src/main/java/org/elasticsearch/search/SearchFeatures.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ public Set<NodeFeature> getFeatures() {
2525
}
2626

2727
public static final NodeFeature RETRIEVER_RESCORER_ENABLED = new NodeFeature("search.retriever.rescorer.enabled");
28-
public static final NodeFeature COMPLETION_FIELD_SUPPORTS_DUPLICATE_SUGGESTIONS =
29-
new NodeFeature("search.completion_field.duplicate.support");
28+
public static final NodeFeature COMPLETION_FIELD_SUPPORTS_DUPLICATE_SUGGESTIONS = new NodeFeature(
29+
"search.completion_field.duplicate.support"
30+
);
3031

3132
@Override
3233
public Set<NodeFeature> getTestFeatures() {

server/src/test/java/org/elasticsearch/index/mapper/CompletionFieldMapperTests.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ public void testKeywordWithSubCompletionAndContext() throws Exception {
303303
);
304304
}
305305

306-
307306
public void testDuplicateSuggestionsWithContexts() throws IOException {
308307
DocumentMapper defaultMapper = createDocumentMapper(fieldMapping(b -> {
309308
b.field("type", "completion");
@@ -343,8 +342,12 @@ public void testDuplicateSuggestionsWithContexts() throws IOException {
343342

344343
assertThat(
345344
indexedFields,
346-
containsInAnyOrder(contextSuggestField("timmy"), contextSuggestField("timmy"),
347-
contextSuggestField("starbucks"), contextSuggestField("starbucks"))
345+
containsInAnyOrder(
346+
contextSuggestField("timmy"),
347+
contextSuggestField("timmy"),
348+
contextSuggestField("starbucks"),
349+
contextSuggestField("starbucks")
350+
)
348351
);
349352

350353
}

0 commit comments

Comments
 (0)