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


The following commit(s) were added to refs/heads/main by this push:
     new aa4f5536355 [camel-neo4j] Mismatched number of placeholders and number 
of args for String.format
aa4f5536355 is described below

commit aa4f5536355e49f569a0bccc0a095d1b2423e38d
Author: Dmitry Kryukov <d...@ya.ru>
AuthorDate: Sun Mar 16 19:34:06 2025 +0300

    [camel-neo4j] Mismatched number of placeholders and number of args for 
String.format
---
 .../src/main/java/org/apache/camel/component/neo4j/Neo4jProducer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 c1ac6cb0a87..f458ee7576b 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
@@ -223,7 +223,7 @@ public class Neo4jProducer extends DefaultProducer {
                                      "ON %s.embedding\n" +
                                      "OPTIONS { indexConfig: {\n" +
                                      " `vector.dimensions`: %s,\n" +
-                                     " `vector.similarity_function`: 
'cosine'\n" +
+                                     " `vector.similarity_function`: '%s'\n" +
                                      "}}",
                 vectorIndexName, alias, label, alias, dimension, 
similarityFunction.name());
 

Reply via email to