mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-31 04:18:39 +00:00
Spelling: replace uknown with unknown (#37056)
This commit is contained in:
parent
15c4d5b184
commit
1df66d21fe
modules/parent-join/src/test/java/org/elasticsearch/join/mapper
server/src
main/java/org/elasticsearch/action/admin/cluster/snapshots/status
test/java/org
apache/lucene/queries
elasticsearch
action/admin/indices/rollover
ingest
search/aggregations/bucket
test/framework/src/main/java/org/elasticsearch/search/aggregations
x-pack/plugin
rollup/src/test/java/org/elasticsearch/xpack/rollup/config
sql/src/main/java/org/elasticsearch/xpack/sql/analysis/index
@ -86,7 +86,7 @@ public class ParentJoinFieldMapperTests extends ESSingleNodeTestCase {
|
||||
assertEquals("1", doc.rootDoc().getBinaryValue("join_field#parent").utf8ToString());
|
||||
assertEquals("child", doc.rootDoc().getBinaryValue("join_field").utf8ToString());
|
||||
|
||||
// Unkwnown join name
|
||||
// Unknown join name
|
||||
MapperException exc = expectThrows(MapperParsingException.class,
|
||||
() -> docMapper.parse(new SourceToParse("test", "type", "1",
|
||||
BytesReference.bytes(XContentFactory.jsonBuilder().startObject()
|
||||
@ -202,7 +202,7 @@ public class ParentJoinFieldMapperTests extends ESSingleNodeTestCase {
|
||||
assertEquals("2", doc.rootDoc().getBinaryValue("join_field#child").utf8ToString());
|
||||
assertEquals("grand_child", doc.rootDoc().getBinaryValue("join_field").utf8ToString());
|
||||
|
||||
// Unkwnown join name
|
||||
// Unknown join name
|
||||
exc = expectThrows(MapperParsingException.class,
|
||||
() -> docMapper.parse(new SourceToParse("test", "type", "1",
|
||||
BytesReference.bytes(XContentFactory.jsonBuilder().startObject()
|
||||
|
@ -189,7 +189,7 @@ public class SnapshotIndexShardStatus extends BroadcastShardResponse implements
|
||||
stage = SnapshotIndexShardStage.valueOf(rawStage);
|
||||
} catch (IllegalArgumentException iae) {
|
||||
throw new ElasticsearchParseException(
|
||||
"failed to parse snapshot index shard status [{}][{}], unknonwn stage [{}]",
|
||||
"failed to parse snapshot index shard status [{}][{}], unknown stage [{}]",
|
||||
shard.getIndex().getName(), shard.getId(), rawStage);
|
||||
}
|
||||
return new SnapshotIndexShardStatus(shard, stage, stats, nodeId, failure);
|
||||
|
@ -60,7 +60,7 @@ public class SpanMatchNoDocsQueryTests extends ESTestCase {
|
||||
IndexReader ir = DirectoryReader.open(iw);
|
||||
IndexSearcher searcher = new IndexSearcher(ir);
|
||||
|
||||
Query query = new SpanMatchNoDocsQuery("unkwown", "field not found");
|
||||
Query query = new SpanMatchNoDocsQuery("unknown", "field not found");
|
||||
assertEquals(searcher.count(query), 0);
|
||||
|
||||
ScoreDoc[] hits;
|
||||
|
@ -165,7 +165,7 @@ public class TransportRolloverActionTests extends ESTestCase {
|
||||
assertEquals(sourceAlias, ((AliasAction.Remove) action).getAlias());
|
||||
foundRemove = true;
|
||||
} else {
|
||||
throw new AssertionError("Unknow index [" + action.getIndex() + "]");
|
||||
throw new AssertionError("Unknown index [" + action.getIndex() + "]");
|
||||
}
|
||||
}
|
||||
assertTrue(foundAdd);
|
||||
@ -195,7 +195,7 @@ public class TransportRolloverActionTests extends ESTestCase {
|
||||
assertFalse(addAction.writeIndex());
|
||||
foundRemoveWrite = true;
|
||||
} else {
|
||||
throw new AssertionError("Unknow index [" + action.getIndex() + "]");
|
||||
throw new AssertionError("Unknown index [" + action.getIndex() + "]");
|
||||
}
|
||||
}
|
||||
assertTrue(foundAddWrite);
|
||||
|
@ -137,9 +137,9 @@ public class ConfigurationUtilsTests extends ESTestCase {
|
||||
unknownTaggedConfig = new HashMap<>();
|
||||
unknownTaggedConfig.put("tag", "my_unknown");
|
||||
config2.add(Collections.singletonMap("unknown_processor", unknownTaggedConfig));
|
||||
Map<String, Object> secondUnknonwTaggedConfig = new HashMap<>();
|
||||
secondUnknonwTaggedConfig.put("tag", "my_second_unknown");
|
||||
config2.add(Collections.singletonMap("second_unknown_processor", secondUnknonwTaggedConfig));
|
||||
Map<String, Object> secondUnknownTaggedConfig = new HashMap<>();
|
||||
secondUnknownTaggedConfig.put("tag", "my_second_unknown");
|
||||
config2.add(Collections.singletonMap("second_unknown_processor", secondUnknownTaggedConfig));
|
||||
e = expectThrows(
|
||||
ElasticsearchParseException.class,
|
||||
() -> ConfigurationUtils.readProcessorConfigs(config2, scriptService, registry)
|
||||
|
@ -692,7 +692,7 @@ public class DoubleTermsIT extends AbstractTermsTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
|
||||
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
|
||||
for (String index : Arrays.asList("idx", "idx_unmapped")) {
|
||||
try {
|
||||
client().prepareSearch(index)
|
||||
|
@ -690,7 +690,7 @@ public class LongTermsIT extends AbstractTermsTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
|
||||
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
|
||||
for (String index : Arrays.asList("idx", "idx_unmapped")) {
|
||||
try {
|
||||
client().prepareSearch(index)
|
||||
|
@ -842,7 +842,7 @@ public class StringTermsIT extends AbstractTermsTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUknownMetric() throws Exception {
|
||||
public void testSingleValuedFieldOrderedByMultiValuedSubAggregationWithUnknownMetric() throws Exception {
|
||||
for (String index : Arrays.asList("idx", "idx_unmapped")) {
|
||||
try {
|
||||
SearchResponse response = client()
|
||||
|
@ -213,7 +213,7 @@ public abstract class BaseAggregationTestCase<AB extends AbstractAggregationBuil
|
||||
factory.script(mockScript("doc[" + field + "] + 1"));
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError("Unknow random operation [" + choice + "]");
|
||||
throw new AssertionError("Unknown random operation [" + choice + "]");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ public class ConfigTests extends ESTestCase {
|
||||
assertThat(config.getTimeZone(), equalTo(DateTimeZone.UTC.getID()));
|
||||
}
|
||||
|
||||
public void testUnkownTimeZone() {
|
||||
public void testUnknownTimeZone() {
|
||||
Exception e = expectThrows(IllegalArgumentException.class,
|
||||
() -> new DateHistogramGroupConfig("foo", DateHistogramInterval.HOUR, null, "FOO"));
|
||||
assertThat(e.getMessage(), equalTo("The datetime zone id 'FOO' is not recognised"));
|
||||
|
@ -64,7 +64,7 @@ public class IndexResolver {
|
||||
INDEX("BASE TABLE"),
|
||||
ALIAS("ALIAS"),
|
||||
// value for user types unrecognized
|
||||
UNKNOWN("UKNOWN");
|
||||
UNKNOWN("UNKNOWN");
|
||||
|
||||
public static final EnumSet<IndexType> VALID = EnumSet.of(INDEX, ALIAS);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user