Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: opensearch fulltext search with metadata filtering dsl error (#20702)
jefferyvvv138ad6e8b333
diff --git a/api/core/rag/datasource/vdb/opensearch/opensearch_vector.py b/api/core/rag/datasource/vdb/opensearch/opensearch_vector.pyindex 6991598ce61..b156be1a228 100644--- a/api/core/rag/datasource/vdb/opensearch/opensearch_vector.py+++ b/api/core/rag/datasource/vdb/opensearch/opensearch_vector.py@@ -209,10 +209,10 @@ class OpenSearchVector(BaseVector):return docsdef search_by_full_text(self, query: str, **kwargs: Any) -> list[Document]:- full_text_query = {"query": {"match": {Field.CONTENT_KEY.value: query}}}+ full_text_query = {"query": {"bool": {"must": [{"match": {Field.CONTENT_KEY.value: query}}]}}}document_ids_filter = kwargs.get("document_ids_filter")if document_ids_filter:- full_text_query["query"]["terms"] = {"metadata.document_id": document_ids_filter}+ full_text_query["query"]["bool"]["filter"] = [{"terms": {"metadata.document_id": document_ids_filter}}]response = self._client.search(index=self._collection_name.lower(), body=full_text_query)