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

135 lines
3.0 KiB
JSON

{
"index": {
"name": "mj_qa_plan",
"aliases": [],
"index_key": "qaplan"
},
"properties": {
"plan_id": {
"type": "keyword"
},
"id": {
"type": "keyword"
},
"urgency_state": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"introduction": {
"type": "text"
},
"content": {
"type": "text",
"fields": {
"fa": {
"type": "text"
},
"ph": {
"type": "text"
}
}
},
"result_sections": {
"properties": {
"number": {
"type": "integer"
},
"title": {
"type": "float"
},
"content": {
"type": "text"
},
"notes": {
"type": "text"
},
"reasons": {
"type": "text"
},
"relation_sections": {
"type": "nested"
}
}
},
"ai_result": {
"properties": {
"start_offset": {
"type": "integer"
},
"end_offset": {
"type": "integer"
},
"word": {
"type": "text"
},
"start": {
"type": "float"
},
"end": {
"type": "float"
}
}
},
"time_create": {
"type": "date"
},
"user_id": {
"type": "integer"
},
"status_code": {
"type": "integer"
},
"status_message": {
"type": "text"
}
},
"validation": {
"required": []
},
"include_fields": [],
"is_array": [],
"query": {
"default_sort": [
{
"_score": "desc"
},
{
"ref_id": "asc"
},
{
"sound_link": "asc"
}
],
"normal": {
"phrase": {
"content.ph": 4
},
"match": {
"content": 2
}
},
"filter_keys": {},
"highlight": {
"pre_tags": [
"<span class='text__orange'>"
],
"post_tags": [
"</span>"
],
"fields": {
"title.fa": {},
"title.ph": {},
"content.fa": {},
"content.ph": {}
}
}
}
}