mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-29 22:56:36 +08:00
### 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
30 lines
487 B
JSON
30 lines
487 B
JSON
{
|
|
"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
|
|
}
|
|
}
|
|
}
|
|
}
|