elastic_backend_fast/app/schemas/mjplan_backend.json
2025-11-29 15:48:25 +03:30

115 lines
2.5 KiB
JSON

{
"index": {
"name": "mj_plan",
"aliases": [],
"index_key": "mjplan"
},
"properties": {
"id": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"content": {
"type": "text"
},
"tcode": {
"type": "keyword"
},
"version_key": {
"type": "keyword"
},
"parent_id": {
"type": "keyword"
},
"child_order": {
"type": "float"
},
"full_path": {
"type": "text"
},
"level": {
"type": "integer"
},
"ai_section_ids": {
"type": "keyword"
},
"section_ids": {
"type": "keyword"
},
"user_actions": {
"properties": {
"user_id": {
"type": "integer"
},
"time_edit": {
"type": "date"
},
"description": {
"type": "text"
},
"property_key": {
"type": "keyword"
},
"action_key": {
"type": "keyword"
},
"action_value": {
"type": "text"
},
"action": {
"type": "object"
}
}
},
"time_create": {
"type": "date"
},
"time_edit": {
"type": "date"
}
},
"validation": {
"required": [
"version_key",
"tcode",
"title"
]
},
"include_fields": [],
"exclude_fields": [],
"is_array": [
"section_ids",
"ai_section_ids",
"user_actions"
],
"query": {
"default_sort": [
{
"_score": "desc"
},
{
"time_create": "desc"
}
],
"normal": {
"phrase": {
"title": 6,
"content": 4
},
"match": {
"title": 3,
"content": 2
}
},
"filter_keys": {
}
}
}