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

774 lines
17 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"mappings": {
"date_detection": false,
"properties": {
"id": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
"fa": {
"type": "text",
"analyzer": "normal_analyzer_fa",
"search_analyzer": "normal_analyzer_fa",
"search_quote_analyzer": "phrase_analyzer_fa"
},
"ph": {
"type": "text",
"analyzer": "phrase_analyzer_fa",
"search_analyzer": "phrase_analyzer_fa",
"search_quote_analyzer": "phrase_analyzer_fa"
},
"keyword": {
"type": "keyword"
}
}
},
"title_popular": {
"type": "text",
"analyzer": "normal_analyzer_fa",
"search_analyzer": "normal_analyzer_fa",
"search_quote_analyzer": "phrase_analyzer_fa"
},
"content": {
"type": "text",
"fields": {
"fa": {
"type": "text",
"analyzer": "normal_analyzer_fa",
"search_analyzer": "normal_analyzer_fa",
"search_quote_analyzer": "phrase_analyzer_fa"
},
"ph": {
"type": "text",
"analyzer": "phrase_analyzer_fa",
"search_analyzer": "phrase_analyzer_fa",
"search_quote_analyzer": "phrase_analyzer_fa"
}
}
},
"embeddings": {
"type": "dense_vector"
},
"initial": {
"properties": {
"title": {
"type": "text"
},
"content": {
"type": "text"
},
"approuve_type": {
"type": "keyword"
},
"creators": {
"type": "keyword"
},
"signers": {
"type": "keyword"
},
"approuve_number": {
"type": "text"
},
"approuve_date": {
"type": "date"
},
"letter_number": {
"type": "text"
},
"letter_date": {
"type": "date"
},
"letter_signer": {
"type": "keyword"
},
"ministers": {
"type": "keyword"
},
"files": {
"properties": {
"path": {
"type": "text"
},
"file_name": {
"type": "text"
},
"title": {
"type": "text"
}
}
}
}
},
"receive": {
"properties": {
"term_number": {
"type": "text"
},
"ref_law": {
"type": "keyword"
},
"meet_number": {
"type": "text"
},
"meet_date": {
"type": "date"
},
"register_number": {
"type": "text"
},
"publish_number": {
"type": "text"
},
"handle_type": {
"type": "keyword"
},
"handle_method": {
"type": "keyword"
}
}
},
"refer": {
"properties": {
"refer_date": {
"type": "date"
},
"commission_type": {
"type": "keyword"
},
"commission_main": {
"type": "keyword"
},
"commission_mirrors": {
"type": "keyword"
},
"commission_common": {
"properties": {
"name": {
"type": "keyword"
},
"member_count": {
"type": "integer"
},
"member_names": {
"type": "keyword"
}
}
},
"handle_85": {
"type": "keyword"
}
}
},
"commission_report": {
"properties": {
"agendas": {
"properties": {
"number": {
"type": "text"
},
"date": {
"type": "date"
}
}
},
"meets": {
"properties": {
"number": {
"type": "text"
},
"date": {
"type": "date"
}
}
},
"report_first": {
"properties": {
"approve_type": {
"type": "keyword"
},
"number": {
"type": "text"
},
"date": {
"type": "date"
}
}
},
"report_nexts": {
"properties": {
"type": {
"type": "keyword"
},
"number": {
"type": "text"
},
"date": {
"type": "date"
},
"duration_85": {
"type": "date"
},
"date_85": {
"type": "date"
}
}
}
}
},
"parl_handle": {
"properties": {
"agendas": {
"properties": {
"number": {
"type": "text"
},
"date": {
"type": "date"
}
}
},
"meets": {
"properties": {
"number": {
"type": "text"
},
"date": {
"type": "date"
}
}
},
"agree_names": {
"type": "keyword"
},
"against_names": {
"type": "keyword"
},
"demands": {
"type": "keyword"
},
"demand85_names": {
"type": "keyword"
},
"handle_infos": {
"properties": {
"type": {
"type": "keyword"
},
"number": {
"type": "text"
},
"date": {
"type": "date"
},
"duration_85": {
"type": "date"
},
"date_85": {
"type": "date"
}
}
}
}
},
"before_info": {
"properties": {
"ref_id": {
"type": "keyword"
},
"plan_type": {
"type": "keyword"
},
"discuss_type": {
"type": "keyword"
},
"ministers": {
"type": "keyword"
},
"creators": {
"type": "text"
},
"register_number": {
"type": "text"
},
"prev_number": {
"type": "text"
},
"receipt_date": {
"type": "date"
},
"discuss_date1": {
"type": "date"
},
"discuss_date2": {
"type": "date"
},
"description": {
"type": "text"
},
"commission_type": {
"type": "keyword"
},
"commission_main": {
"type": "keyword"
},
"commission_mirrors": {
"type": "keyword"
},
"content": {
"type": "text"
}
}
},
"letters": {
"properties": {
"type": {
"type": "keyword"
},
"sub_type": {
"type": "keyword"
},
"order": {
"type": "float"
},
"number": {
"type": "text"
},
"date": {
"type": "date"
},
"description": {
"type": "text"
},
"content": {
"type": "text"
},
"delay_time": {
"type": "text"
},
"expire_date": {
"type": "date"
},
"files": {
"properties": {
"path": {
"type": "text"
},
"file_name": {
"type": "text"
},
"title": {
"type": "text"
}
}
}
}
},
"counts": {
"properties": {
"key": {
"type": "keyword"
},
"value": {
"type": "text"
}
}
},
"davam_type": {
"type": "keyword"
},
"number_all": {
"type": "text"
},
"number_row": {
"type": "text"
},
"archive_info": {
"properties": {
"type": {
"type": "keyword"
},
"number": {
"type": "text"
},
"description": {
"type": "text"
}
}
},
"ts_date_dotic": {
"type": "date"
},
"ts_date1": {
"type": "date"
},
"ts_ref1": {
"type": "keyword"
},
"ts_date2": {
"type": "date"
},
"ts_ref2": {
"type": "keyword"
},
"conformity_rrk": {
"type": "keyword"
},
"conformity_qanonyar": {
"type": "keyword"
},
"content_ocr": {
"type": "text"
},
"qanon_etebar": {
"type": "keyword"
},
"expire_date": {
"type": "date"
},
"exec_date": {
"type": "date"
},
"ref_key": {
"type": "keyword"
},
"ts_date": {
"type": "date"
},
"ts_year": {
"type": "integer"
},
"ts_ref": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"term": {
"type": "keyword"
},
"term_number": {
"type": "integer"
},
"ranking_weight": {
"type": "integer"
},
"main_type": {
"type": "keyword"
},
"sub_type": {
"type": "keyword"
},
"title_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"action_type": {
"type": "keyword"
},
"section_len": {
"type": "integer"
},
"eblagh": {
"properties": {
"number": {
"type": "text"
},
"date": {
"type": "text"
},
"from": {
"type": "keyword"
}
}
},
"rrk": {
"properties": {
"number": {
"type": "text"
},
"date": {
"type": "text"
}
}
},
"exceuter_organs": {
"properties": {
"id": {
"type": "integer"
},
"title": {
"type": "keyword"
}
}
},
"receiver_organs": {
"properties": {
"id": {
"type": "integer"
},
"title": {
"type": "keyword"
}
}
},
"sort_date_timestamp": {
"type": "long"
},
"qanon_relations": {
"properties": {
"from_type": {
"type": "keyword"
},
"from_section_id": {
"type": "keyword"
},
"from_section_title": {
"type": "keyword"
},
"rel_type": {
"type": "keyword"
},
"to_type": {
"type": "keyword"
},
"to_id": {
"type": "keyword"
},
"to_title": {
"type": "keyword"
},
"wait": {
"type": "integer"
},
"rel_key": {
"type": "keyword"
}
}
},
"opinion_relations": {
"properties": {
"from_type": {
"type": "keyword"
},
"from_section_id": {
"type": "keyword"
},
"from_section_title": {
"type": "keyword"
},
"rel_type": {
"type": "keyword"
},
"to_type": {
"type": "keyword"
},
"to_id": {
"type": "keyword"
},
"to_title": {
"type": "keyword"
},
"wait": {
"type": "integer"
},
"rel_key": {
"type": "keyword"
}
}
},
"fixed_date": {
"type": "date"
},
"renewal_date": {
"type": "date"
},
"exec_duration": {
"type": "text"
},
"effective_date": {
"type": "date"
},
"relation_organs": {
"type": "keyword"
},
"files": {
"properties": {
"path": {
"type": "text"
},
"file_name": {
"type": "text"
},
"title": {
"type": "text"
},
"type": {
"type": "keyword"
}
}
},
"is_delete": {
"type": "integer"
},
"time_edit": {
"type": "date"
},
"doc_tags": {
"type": "keyword"
},
"doc_states": {
"type": "keyword"
}
}
},
"settings": {
"index.max_result_window": 15000,
"index": {
"analysis": {
"analyzer": {
"phrase_analyzer_fa": {
"type": "custom",
"tokenizer": "standard",
"char_filter": [
"fa_char_filter"
],
"filter": []
},
"normal_analyzer_fa": {
"type": "custom",
"tokenizer": "standard",
"char_filter": [
"fa_char_filter"
],
"filter": [
"fa_stop"
]
}
},
"filter": {
"fa_stop": {
"type": "stop",
"stopwords": [
"یا",
"را",
"این",
"با",
"آن",
"و",
"در",
"به",
"که",
"از",
"طی",
"پس",
"چه",
"اگر",
"نه",
"آنها",
"هر",
"او",
"ما",
"من",
"تا",
"نیز",
"اما",
"یک",
"بر",
"هم",
"برای",
"کن",
"کرد",
"کردن",
"باش",
"بود",
"بودن",
"شو",
"شد",
"شدن",
"‏دار",
"داشت",
"داشتن",
"‏خواه",
"خواست",
"خواستن",
"‏گوی",
"گفت",
"گفتن",
"‏گیر",
"گرفت",
"گرفتن",
"‏آی",
"آمد",
"آمدن",
"‏توان",
"توانستن",
"‏یاب",
"یافتن",
"‏آور",
"آورد",
"آوردن",
"1",
"2",
"3",
"ص",
"4",
"و",
"5",
"ج",
"6",
"a",
"top",
"href",
"pageno"
],
"char_filter": []
}
},
"char_filter": {
"fa_char_filter": {
"type": "mapping",
"mappings": [
"٠ => 0",
"١ => 1",
"٢ => 2",
"٣ => 3",
"٤ => 4",
"٥ => 5",
"٦ => 6",
"٧ => 7",
"٨ => 8",
"٩ => 9",
"ک => ك",
"ی => ي",
"ة => ه",
"إ => ا",
"أ => ا",
"آ => ا",
"ء => ا",
"َ => ",
"ُ => ",
"ِ => ",
"ّ => ",
"ً => ",
"ٌ => ",
"ٍ => ",
"ْ => "
]
}
}
},
"number_of_shards": "1",
"number_of_replicas": "0"
}
}
}