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

141 lines
3.3 KiB
JSON

{
"index": {
"name": "mj_plan_section",
"aliases": [],
"index_key": "mjpsection"
},
"properties": {
"id": {
"type": "keyword"
},
"plan_id": {
"type": "keyword"
},
"tcode": {
"type": "keyword"
},
"version_key": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"content": {
"type": "text"
},
"footnotes": {
"properties": {
"text": {
"type": "text"
},
"main_type": {
"type": "keyword"
},
"refrence_ids": {
"type": "keyword"
}
}
},
"section_info": {
"properties": {
"qanon_title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"full_path": {
"type": "text"
},
"ts_date": {
"type": "date"
},
"ts_ref": {
"type": "keyword"
},
"state_etebar": {
"type": "keyword"
},
"content": {
"type": "text"
}
}
},
"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": [
"plan_id",
"tcode"
]
},
"include_fields": [],
"exclude_fields": [],
"is_array": [
"footnotes",
"user_actions"
],
"query": {
"default_sort": [
{
"_score": "desc"
},
{
"time_create": "desc"
}
],
"normal": {
"phrase": {
"title": 6,
"content": 4,
"section.content": 4
},
"match": {
"title": 3,
"content": 2,
"section.content": 2
}
},
"filter_keys": {
}
}
}