mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 22:47:15 +08:00
fix: opensearch metadata filtering returns empty (#20701)
Co-authored-by: wenjun.gu <wenjun.gu@envision-energy.com> Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
parent
4f14d7c0ca
commit
4271602cfc
@ -255,7 +255,8 @@ class OpenSearchVector(BaseVector):
|
|||||||
Field.METADATA_KEY.value: {
|
Field.METADATA_KEY.value: {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"doc_id": {"type": "keyword"} # Map doc_id to keyword type
|
"doc_id": {"type": "keyword"}, # Map doc_id to keyword type
|
||||||
|
"document_id": {"type": "keyword"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user