From f26abd231ab0dafa4daf77ae0e1e6f796043aba5 Mon Sep 17 00:00:00 2001 From: markharwood Date: Mon, 23 Aug 2021 12:07:51 +0100 Subject: [PATCH] =?UTF-8?q?Test=20fix=20-=20seed=20produced=20a=20random?= =?UTF-8?q?=20document=20field=20value=20that=20didn=E2=80=99t=20produce?= =?UTF-8?q?=20any=20of=20the=20characters=20we=20were=20searching=20for.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #76811 --- .../xpack/wildcard/mapper/WildcardFieldMapperTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java b/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java index 7407cd210ab30..5c6a6b1b7c9a7 100644 --- a/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java +++ b/x-pack/plugin/wildcard/src/test/java/org/elasticsearch/xpack/wildcard/mapper/WildcardFieldMapperTests.java @@ -130,7 +130,7 @@ public void testTooBigKeywordField() throws IOException { RandomIndexWriter iw = new RandomIndexWriter(random(), dir, iwc); // Create a string that is too large and will not be indexed - String docContent = randomABString(MAX_FIELD_LENGTH + 1); + String docContent = "a" + randomABString(MAX_FIELD_LENGTH); Document doc = new Document(); LuceneDocument parseDoc = new LuceneDocument(); addFields(parseDoc, doc, docContent);