This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit fe4cb64046022528b83ba67e048602de651bbdc0 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Mon Jan 26 17:44:13 2026 +0000 (chores): ensure usage of text blocks components/camel-ai/camel-neo4j --- .../org/apache/camel/component/neo4j/Neo4jProducer.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/components/camel-ai/camel-neo4j/src/main/java/org/apache/camel/component/neo4j/Neo4jProducer.java b/components/camel-ai/camel-neo4j/src/main/java/org/apache/camel/component/neo4j/Neo4jProducer.java index fe346cd39f05..53b500131e34 100644 --- a/components/camel-ai/camel-neo4j/src/main/java/org/apache/camel/component/neo4j/Neo4jProducer.java +++ b/components/camel-ai/camel-neo4j/src/main/java/org/apache/camel/component/neo4j/Neo4jProducer.java @@ -309,13 +309,14 @@ public class Neo4jProducer extends DefaultProducer { final String databaseName = getEndpoint().getName(); - String query = String.format("CREATE VECTOR INDEX %s IF NOT EXISTS\n" + - "FOR (%s:%s)\n" + - "ON %s.embedding\n" + - "OPTIONS { indexConfig: {\n" + - " `vector.dimensions`: %s,\n" + - " `vector.similarity_function`: '%s'\n" + - "}}", + String query = String.format(""" + CREATE VECTOR INDEX %s IF NOT EXISTS + FOR (%s:%s) + ON %s.embedding + OPTIONS { indexConfig: { + `vector.dimensions`: %s, + `vector.similarity_function`: '%s' + }}""", vectorIndexName, alias, label, alias, dimension, similarityFunction.name()); executeWriteQuery(exchange, query, null, databaseName, Neo4Operation.CREATE_VECTOR_INDEX);
