This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch CAMEL-21012
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8008965dba781040aaa4ec73945334acc34b2b8f
Author: Andrea Cosentino <[email protected]>
AuthorDate: Wed Aug 7 13:13:07 2024 +0200

    CAMEL-21012 - camel-milvus: collection name mismatch with embeddings
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../apache/camel/catalog/components/milvus.json    |  4 +++-
 .../endpoint/dsl/MilvusEndpointBuilderFactory.java | 24 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
index 6405557553d..b0fdb0f3bd5 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/milvus.json
@@ -37,7 +37,9 @@
     "CamelMilvusOperationStatusValue": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Operation Status Value.", 
"constantName": 
"org.apache.camel.component.milvus.Milvus$Headers#OPERATION_STATUS_VALUE" },
     "CamelMilvusTextFieldName": { "index": 3, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Text Field Name for Insert\/Upsert operation", 
"constantName": 
"org.apache.camel.component.milvus.Milvus$Headers#TEXT_FIELD_NAME" },
     "CamelMilvusVectorFieldName": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Vector Field Name for Insert\/Upsert 
operation", "constantName": 
"org.apache.camel.component.milvus.Milvus$Headers#VECTOR_FIELD_NAME" },
-    "CamelMilvusCollectionName": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Collection Name for Insert\/Upsert 
operation", "constantName": 
"org.apache.camel.component.milvus.Milvus$Headers#COLLECTION_NAME" }
+    "CamelMilvusCollectionName": { "index": 5, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": 
false, "secret": false, "description": "Collection Name for Insert\/Upsert 
operation", "constantName": 
"org.apache.camel.component.milvus.Milvus$Headers#COLLECTION_NAME" },
+    "CamelMilvusKeyName": { "index": 6, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Key Name for Insert\/Upsert operation", "constantName": 
"org.apache.camel.component.milvus.Milvus$Headers#KEY_NAME" },
+    "CamelMilvusKeyValue": { "index": 7, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "deprecationNote": "", "autowired": false, "secret": 
false, "description": "Key Value for Insert\/Upsert operation", "constantName": 
"org.apache.camel.component.milvus.Milvus$Headers#KEY_VALUE" }
   },
   "properties": {
     "collection": { "index": 0, "kind": "path", "displayName": "Collection", 
"group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", 
"autowired": false, "secret": false, "description": "The collection Name" },
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
index 2e3b76f8266..cc09b81be7b 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MilvusEndpointBuilderFactory.java
@@ -329,6 +329,30 @@ public interface MilvusEndpointBuilderFactory {
         public String milvusCollectionName() {
             return "CamelMilvusCollectionName";
         }
+        /**
+         * Key Name for Insert/Upsert operation.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code MilvusKeyName}.
+         */
+        public String milvusKeyName() {
+            return "CamelMilvusKeyName";
+        }
+        /**
+         * Key Value for Insert/Upsert operation.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code MilvusKeyValue}.
+         */
+        public String milvusKeyValue() {
+            return "CamelMilvusKeyValue";
+        }
     }
     static MilvusEndpointBuilder endpointBuilder(String componentName, String 
path) {
         class MilvusEndpointBuilderImpl extends AbstractEndpointBuilder 
implements MilvusEndpointBuilder, AdvancedMilvusEndpointBuilder {

Reply via email to