mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-31 15:45:08 +08:00
Put document metadata in ES/Infinity (#12826)
### What problem does this PR solve?
Put document metadata in ES/Infinity.
Index name of meta data: ragflow_doc_meta_{tenant_id}
### Type of change
- [x] Refactoring
This commit is contained in:
29
conf/doc_meta_es_mapping.json
Normal file
29
conf/doc_meta_es_mapping.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"settings": {
|
||||
"index": {
|
||||
"number_of_shards": 2,
|
||||
"number_of_replicas": 0,
|
||||
"refresh_interval": "1000ms"
|
||||
}
|
||||
},
|
||||
"mappings": {
|
||||
"_source": {
|
||||
"enabled": true
|
||||
},
|
||||
"dynamic": "runtime",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "keyword",
|
||||
"store": true
|
||||
},
|
||||
"kb_id": {
|
||||
"type": "keyword",
|
||||
"store": true
|
||||
},
|
||||
"meta_fields": {
|
||||
"type": "object",
|
||||
"dynamic": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
5
conf/doc_meta_infinity_mapping.json
Normal file
5
conf/doc_meta_infinity_mapping.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": {"type": "varchar", "default": ""},
|
||||
"kb_id": {"type": "varchar", "default": ""},
|
||||
"meta_fields": {"type": "json", "default": "{}"}
|
||||
}
|
||||
Reference in New Issue
Block a user