This is an automated email from the ASF dual-hosted git repository.
davsclaus 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 09888d310a2e Weaviate: updated comments (doc) to reflect implemented
actions (#20994)
09888d310a2e is described below
commit 09888d310a2eaea2d9bff6f92ac1dd147b7e6f4f
Author: JiriOndrusek <[email protected]>
AuthorDate: Fri Jan 23 10:32:35 2026 +0100
Weaviate: updated comments (doc) to reflect implemented actions (#20994)
---
.../apache/camel/catalog/components/weaviate.json | 27 ++++----
.../apache/camel/component/weaviate/weaviate.json | 27 ++++----
.../weaviate/WeaviateVectorDbHeaders.java | 27 ++------
.../WeaviateVectorDbEndpointBuilderFactory.java | 71 ++--------------------
4 files changed, 33 insertions(+), 119 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weaviate.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weaviate.json
index e186d8ce0d34..766b9d182103 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weaviate.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/weaviate.json
@@ -35,22 +35,17 @@
"autowiredEnabled": { "index": 8, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
- "CamelWeaviateAction": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH",
"DELETE", "UPDATE", "QUERY", "QUERY_BY_ID" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description": "The
action to be performed.", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#ACTION" },
- "CamelWeaviateTextFieldName": { "index": 1, "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.weaviate.WeaviateVectorDbHeaders#TEXT_FIELD_NAME" },
- "CamelweaviateVectorFieldName": { "index": 2, "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.weaviate.WeaviateVectorDbHeaders#VECTOR_FIELD_NAME"
},
- "CamelWeaviateCollectionName": { "index": 3, "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.weaviate.WeaviateVectorDbHeaders#COLLECTION_NAME" },
- "CamelWeaviateCollectionSimilarityMetric": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "cosine", "euclidean", "dotproduct" ],
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Collection Similarity Metric", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_SIMILARITY_METRIC"
},
- "CamelWeaviateCollectionDimension": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Dimension", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_DIMENSION"
},
- "CamelWeaviateCollectionCloud": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_CLOUD"
},
- "CamelWeaviateCollectionCloudRegion": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor Region", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_CLOUD_REGION"
},
- "CamelWeaviateIndexName": { "index": 8, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Index Name", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#INDEX_NAME" },
- "CamelWeaviateFields": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object fields", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#FIELDS" },
- "CamelWeaviateProperties": { "index": 10, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object properties", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#PROPERTIES" },
- "CamelWeaviateIndexId": { "index": 11, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Index Id", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#INDEX_ID" },
- "CamelWeaviateQueryTopK": { "index": 12, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Query Top K", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#QUERY_TOP_K" },
- "CamelWeaviateUpdateWithMerge": { "index": 13, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "true", "description": "Merges
properties into the object", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#UPDATE_WITH_MERGE"
},
- "CamelWeaviateKeyName": { "index": 14, "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.weaviate.WeaviateVectorDbHeaders#KEY_NAME" },
- "CamelWeaviateKeyValue": { "index": 15, "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.weaviate.WeaviateVectorDbHeaders#KEY_VALUE" }
+ "CamelWeaviateAction": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"enum": [ "CREATE_COLLECTION", "CREATE", "DELETE_BY_ID", "DELETE_COLLECTION",
"QUERY", "QUERY_BY_ID", "UPDATE_BY_ID" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description": "The
action to be performed.", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#ACTION" },
+ "CamelWeaviateTextFieldName": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Text Field Name for
Create\/Update\/Query operation", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#TEXT_FIELD_NAME" },
+ "CamelweaviateVectorFieldName": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Vector Field Name for
Create\/Update\/Query operation", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#VECTOR_FIELD_NAME"
},
+ "CamelWeaviateCollectionName": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Name for all operations",
"constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_NAME" },
+ "CamelWeaviateFields": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object fields", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#FIELDS" },
+ "CamelWeaviateProperties": { "index": 5, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object properties", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#PROPERTIES" },
+ "CamelWeaviateIndexId": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Index Id", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#INDEX_ID" },
+ "CamelWeaviateQueryTopK": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Query Top K", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#QUERY_TOP_K" },
+ "CamelWeaviateUpdateWithMerge": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "true", "description": "Merges
properties into the object", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#UPDATE_WITH_MERGE"
},
+ "CamelWeaviateKeyName": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Key Name for Create\/Update\/Query operation",
"constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#KEY_NAME" },
+ "CamelWeaviateKeyValue": { "index": 10, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Key Value for Create\/Update\/Query operation",
"constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#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/components/camel-ai/camel-weaviate/src/generated/resources/META-INF/org/apache/camel/component/weaviate/weaviate.json
b/components/camel-ai/camel-weaviate/src/generated/resources/META-INF/org/apache/camel/component/weaviate/weaviate.json
index e186d8ce0d34..766b9d182103 100644
---
a/components/camel-ai/camel-weaviate/src/generated/resources/META-INF/org/apache/camel/component/weaviate/weaviate.json
+++
b/components/camel-ai/camel-weaviate/src/generated/resources/META-INF/org/apache/camel/component/weaviate/weaviate.json
@@ -35,22 +35,17 @@
"autowiredEnabled": { "index": 8, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
- "CamelWeaviateAction": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"enum": [ "CREATE_COLLECTION", "CREATE_INDEX", "UPSERT", "INSERT", "SEARCH",
"DELETE", "UPDATE", "QUERY", "QUERY_BY_ID" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description": "The
action to be performed.", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#ACTION" },
- "CamelWeaviateTextFieldName": { "index": 1, "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.weaviate.WeaviateVectorDbHeaders#TEXT_FIELD_NAME" },
- "CamelweaviateVectorFieldName": { "index": 2, "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.weaviate.WeaviateVectorDbHeaders#VECTOR_FIELD_NAME"
},
- "CamelWeaviateCollectionName": { "index": 3, "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.weaviate.WeaviateVectorDbHeaders#COLLECTION_NAME" },
- "CamelWeaviateCollectionSimilarityMetric": { "index": 4, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "cosine", "euclidean", "dotproduct" ],
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Collection Similarity Metric", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_SIMILARITY_METRIC"
},
- "CamelWeaviateCollectionDimension": { "index": 5, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "int", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Dimension", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_DIMENSION"
},
- "CamelWeaviateCollectionCloud": { "index": 6, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_CLOUD"
},
- "CamelWeaviateCollectionCloudRegion": { "index": 7, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "enum": [ "aws", "gcp", "azure" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description":
"Collection Cloud Vendor Region", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_CLOUD_REGION"
},
- "CamelWeaviateIndexName": { "index": 8, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Index Name", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#INDEX_NAME" },
- "CamelWeaviateFields": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object fields", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#FIELDS" },
- "CamelWeaviateProperties": { "index": 10, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object properties", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#PROPERTIES" },
- "CamelWeaviateIndexId": { "index": 11, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Index Id", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#INDEX_ID" },
- "CamelWeaviateQueryTopK": { "index": 12, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Query Top K", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#QUERY_TOP_K" },
- "CamelWeaviateUpdateWithMerge": { "index": 13, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "true", "description": "Merges
properties into the object", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#UPDATE_WITH_MERGE"
},
- "CamelWeaviateKeyName": { "index": 14, "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.weaviate.WeaviateVectorDbHeaders#KEY_NAME" },
- "CamelWeaviateKeyValue": { "index": 15, "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.weaviate.WeaviateVectorDbHeaders#KEY_VALUE" }
+ "CamelWeaviateAction": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"enum": [ "CREATE_COLLECTION", "CREATE", "DELETE_BY_ID", "DELETE_COLLECTION",
"QUERY", "QUERY_BY_ID", "UPDATE_BY_ID" ], "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "description": "The
action to be performed.", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#ACTION" },
+ "CamelWeaviateTextFieldName": { "index": 1, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Text Field Name for
Create\/Update\/Query operation", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#TEXT_FIELD_NAME" },
+ "CamelweaviateVectorFieldName": { "index": 2, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Vector Field Name for
Create\/Update\/Query operation", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#VECTOR_FIELD_NAME"
},
+ "CamelWeaviateCollectionName": { "index": 3, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "String", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Collection Name for all operations",
"constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#COLLECTION_NAME" },
+ "CamelWeaviateFields": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object fields", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#FIELDS" },
+ "CamelWeaviateProperties": { "index": 5, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "HashMap",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Weaviate Object properties", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#PROPERTIES" },
+ "CamelWeaviateIndexId": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Index Id", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#INDEX_ID" },
+ "CamelWeaviateQueryTopK": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Query Top K", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#QUERY_TOP_K" },
+ "CamelWeaviateUpdateWithMerge": { "index": 8, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "true", "description": "Merges
properties into the object", "constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#UPDATE_WITH_MERGE"
},
+ "CamelWeaviateKeyName": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Key Name for Create\/Update\/Query operation",
"constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#KEY_NAME" },
+ "CamelWeaviateKeyValue": { "index": 10, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Key Value for Create\/Update\/Query operation",
"constantName":
"org.apache.camel.component.weaviate.WeaviateVectorDbHeaders#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/components/camel-ai/camel-weaviate/src/main/java/org/apache/camel/component/weaviate/WeaviateVectorDbHeaders.java
b/components/camel-ai/camel-weaviate/src/main/java/org/apache/camel/component/weaviate/WeaviateVectorDbHeaders.java
index 4cd2b7896e45..14cba44bc63a 100644
---
a/components/camel-ai/camel-weaviate/src/main/java/org/apache/camel/component/weaviate/WeaviateVectorDbHeaders.java
+++
b/components/camel-ai/camel-weaviate/src/main/java/org/apache/camel/component/weaviate/WeaviateVectorDbHeaders.java
@@ -21,33 +21,18 @@ import org.apache.camel.spi.Metadata;
public class WeaviateVectorDbHeaders {
@Metadata(description = "The action to be performed.", javaType = "String",
- enums =
"CREATE_COLLECTION,CREATE_INDEX,UPSERT,INSERT,SEARCH,DELETE,UPDATE,QUERY,QUERY_BY_ID")
+ enums =
"CREATE_COLLECTION,CREATE,DELETE_BY_ID,DELETE_COLLECTION,QUERY,QUERY_BY_ID,UPDATE_BY_ID")
public static final String ACTION = "CamelWeaviateAction";
- @Metadata(description = "Text Field Name for Insert/Upsert operation",
javaType = "String")
+ @Metadata(description = "Text Field Name for Create/Update/Query
operation", javaType = "String")
public static final String TEXT_FIELD_NAME = "CamelWeaviateTextFieldName";
- @Metadata(description = "Vector Field Name for Insert/Upsert operation",
javaType = "String")
+ @Metadata(description = "Vector Field Name for Create/Update/Query
operation", javaType = "String")
public static final String VECTOR_FIELD_NAME =
"CamelweaviateVectorFieldName";
- @Metadata(description = "Collection Name for Insert/Upsert operation",
javaType = "String")
+ @Metadata(description = "Collection Name for all operations", javaType =
"String")
public static final String COLLECTION_NAME = "CamelWeaviateCollectionName";
- @Metadata(description = "Collection Similarity Metric", javaType =
"String", enums = "cosine,euclidean,dotproduct")
- public static final String COLLECTION_SIMILARITY_METRIC =
"CamelWeaviateCollectionSimilarityMetric";
-
- @Metadata(description = "Collection Dimension", javaType = "int")
- public static final String COLLECTION_DIMENSION =
"CamelWeaviateCollectionDimension";
-
- @Metadata(description = "Collection Cloud Vendor", javaType = "String",
enums = "aws,gcp,azure")
- public static final String COLLECTION_CLOUD =
"CamelWeaviateCollectionCloud";
-
- @Metadata(description = "Collection Cloud Vendor Region", javaType =
"String", enums = "aws,gcp,azure")
- public static final String COLLECTION_CLOUD_REGION =
"CamelWeaviateCollectionCloudRegion";
-
- @Metadata(description = "Index Name", javaType = "String")
- public static final String INDEX_NAME = "CamelWeaviateIndexName";
-
@Metadata(description = "Weaviate Object fields", javaType = "HashMap")
public static final String FIELDS = "CamelWeaviateFields";
@@ -63,10 +48,10 @@ public class WeaviateVectorDbHeaders {
@Metadata(description = "Merges properties into the object", javaType =
"Boolean", defaultValue = "true")
public static final String UPDATE_WITH_MERGE =
"CamelWeaviateUpdateWithMerge";
- @Metadata(description = "Key Name for Insert/Upsert operation", javaType =
"String")
+ @Metadata(description = "Key Name for Create/Update/Query operation",
javaType = "String")
public static final String KEY_NAME = "CamelWeaviateKeyName";
- @Metadata(description = "Key Value for Insert/Upsert operation", javaType
= "String")
+ @Metadata(description = "Key Value for Create/Update/Query operation",
javaType = "String")
public static final String KEY_VALUE = "CamelWeaviateKeyValue";
}
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeaviateVectorDbEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeaviateVectorDbEndpointBuilderFactory.java
index 89ce7a177542..6163a3237107 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeaviateVectorDbEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WeaviateVectorDbEndpointBuilderFactory.java
@@ -282,7 +282,7 @@ public interface WeaviateVectorDbEndpointBuilderFactory {
return "CamelWeaviateAction";
}
/**
- * Text Field Name for Insert/Upsert operation.
+ * Text Field Name for Create/Update/Query operation.
*
* The option is a: {@code String} type.
*
@@ -294,7 +294,7 @@ public interface WeaviateVectorDbEndpointBuilderFactory {
return "CamelWeaviateTextFieldName";
}
/**
- * Vector Field Name for Insert/Upsert operation.
+ * Vector Field Name for Create/Update/Query operation.
*
* The option is a: {@code String} type.
*
@@ -306,7 +306,7 @@ public interface WeaviateVectorDbEndpointBuilderFactory {
return "CamelweaviateVectorFieldName";
}
/**
- * Collection Name for Insert/Upsert operation.
+ * Collection Name for all operations.
*
* The option is a: {@code String} type.
*
@@ -317,67 +317,6 @@ public interface WeaviateVectorDbEndpointBuilderFactory {
public String weaviateCollectionName() {
return "CamelWeaviateCollectionName";
}
- /**
- * Collection Similarity Metric.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code
- * WeaviateCollectionSimilarityMetric}.
- */
- public String weaviateCollectionSimilarityMetric() {
- return "CamelWeaviateCollectionSimilarityMetric";
- }
- /**
- * Collection Dimension.
- *
- * The option is a: {@code int} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code WeaviateCollectionDimension}.
- */
- public String weaviateCollectionDimension() {
- return "CamelWeaviateCollectionDimension";
- }
- /**
- * Collection Cloud Vendor.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code WeaviateCollectionCloud}.
- */
- public String weaviateCollectionCloud() {
- return "CamelWeaviateCollectionCloud";
- }
- /**
- * Collection Cloud Vendor Region.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code
WeaviateCollectionCloudRegion}.
- */
- public String weaviateCollectionCloudRegion() {
- return "CamelWeaviateCollectionCloudRegion";
- }
- /**
- * Index Name.
- *
- * The option is a: {@code String} type.
- *
- * Group: producer
- *
- * @return the name of the header {@code WeaviateIndexName}.
- */
- public String weaviateIndexName() {
- return "CamelWeaviateIndexName";
- }
/**
* Weaviate Object fields.
*
@@ -440,7 +379,7 @@ public interface WeaviateVectorDbEndpointBuilderFactory {
return "CamelWeaviateUpdateWithMerge";
}
/**
- * Key Name for Insert/Upsert operation.
+ * Key Name for Create/Update/Query operation.
*
* The option is a: {@code String} type.
*
@@ -452,7 +391,7 @@ public interface WeaviateVectorDbEndpointBuilderFactory {
return "CamelWeaviateKeyName";
}
/**
- * Key Value for Insert/Upsert operation.
+ * Key Value for Create/Update/Query operation.
*
* The option is a: {@code String} type.
*