Sfoglia il codice sorgente

HFM typo fixed and test fixed (#108804)

<!-- Thank you for your interest in and contributing to Elasticsearch!
There are a few simple things to check before submitting your pull
request that can help with the review process. You should delete these
items from your submission, but they are here to help bring them to your
attention. -->

Fix typo in HistogramFieldMapper  and fixed related test code

closes https://github.com/elastic/elasticsearch/issues/108050
Sangmin Lee 1 anno fa
parent
commit
2822fa4072

+ 1 - 1
x-pack/plugin/analytics/src/main/java/org/elasticsearch/xpack/analytics/mapper/HistogramFieldMapper.java

@@ -410,7 +410,7 @@ public class HistogramFieldMapper extends FieldMapper {
                         + name()
                         + "] of type ["
                         + typeName()
-                        + "] doesn't not support indexing multiple values for the same field in the same document"
+                        + "] doesn't support indexing multiple values for the same field in the same document"
                 );
             }
             context.doc().addWithKey(fieldType().name(), field);

+ 1 - 1
x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramFieldMapperTests.java

@@ -87,7 +87,7 @@ public class HistogramFieldMapperTests extends MapperTestCase {
         })));
         assertThat(
             e.getCause().getMessage(),
-            containsString("doesn't not support indexing multiple values for the same field in the same document")
+            containsString("doesn't support indexing multiple values for the same field in the same document")
         );
     }