diff --git a/java-client/src/test/java/org/opensearch/client/opensearch/model/VariantsTest.java b/java-client/src/test/java/org/opensearch/client/opensearch/model/VariantsTest.java index 0f3e265c76..e504050c19 100644 --- a/java-client/src/test/java/org/opensearch/client/opensearch/model/VariantsTest.java +++ b/java-client/src/test/java/org/opensearch/client/opensearch/model/VariantsTest.java @@ -228,7 +228,7 @@ public void testNeuralQueryFromJson() { + " \"query\": {\n" + " \"neural\": {\n" + " \"passage_embedding\": {\n" - + " \"query_text\": \"Hi world\",\n" + + " \"query_text\": \"Hi world!\",\n" + " \"model_id\": \"bQ1J8ooBpBj3wT4HVUsb\",\n" + " \"k\": 100\n" + " }\n" @@ -239,7 +239,7 @@ public void testNeuralQueryFromJson() { SearchRequest searchRequest = ModelTestCase.fromJson(json, SearchRequest.class, mapper); assertEquals("passage_embedding", searchRequest.query().neural().field()); - assertEquals("Hi world", searchRequest.query().neural().queryText()); + assertEquals("Hi world!", searchRequest.query().neural().queryText()); assertEquals("bQ1J8ooBpBj3wT4HVUsb", searchRequest.query().neural().modelId()); assertEquals(100, searchRequest.query().neural().k()); }