This commit is contained in:
init_mahdi
2025-11-06 16:34:54 +03:30
parent 0d99c9adf4
commit 47ec6c1e27
6 changed files with 926 additions and 837 deletions
+10
View File
@@ -32,3 +32,13 @@ yarn-error.log*
*.rar *.rar
*.zip *.zip
analyzed_domains.json analyzed_domains.json
# monir test
app/monir/
app/monir/new_schema/
monir/
monir/new_schema/
app/monir/elastic_helper.py
app/monir/sanad_stuff.py
app/monir/new_schema/mn_term.json
app/monir/new_schema/mn_meet.json
app/monir/new_schema/mn_meet_entity.json
File diff suppressed because it is too large Load Diff
+33 -28
View File
@@ -5,7 +5,6 @@
"sub_type": { "sub_type": {
"type": "keyword" "type": "keyword"
}, },
"id": { "id": {
"type": "keyword" "type": "keyword"
}, },
@@ -21,7 +20,6 @@
"old_meet_id": { "old_meet_id": {
"type": "integer" "type": "integer"
}, },
"title": { "title": {
"type": "text", "type": "text",
"fields": { "fields": {
@@ -34,13 +32,21 @@
"meet_no": { "meet_no": {
"type": "integer" "type": "integer"
}, },
"author": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"term_info": { "term_info": {
"properties": { "properties": {
"id": { "id": {
"type": "keyword" "type": "keyword"
}, },
"format": { "sub_type": {
"type": "keyword" "type": "keyword"
}, },
"author": { "author": {
@@ -63,7 +69,6 @@
} }
} }
}, },
"subtitle": { "subtitle": {
"type": "text", "type": "text",
"fields": { "fields": {
@@ -73,7 +78,6 @@
} }
} }
}, },
"subjects": { "subjects": {
"properties": { "properties": {
"id": { "id": {
@@ -99,7 +103,6 @@
} }
} }
}, },
"tags": { "tags": {
"type": "text", "type": "text",
"fields": { "fields": {
@@ -127,14 +130,12 @@
} }
} }
}, },
"sanad_year": { "sanad_year": {
"type": "integer" "type": "integer"
}, },
"sanad_date": { "sanad_date": {
"type": "date" "type": "date"
}, },
"amplify": { "amplify": {
"type": "text" "type": "text"
}, },
@@ -150,15 +151,12 @@
"address": { "address": {
"type": "text" "type": "text"
}, },
"audience": { "audience": {
"type": "text" "type": "text"
}, },
"attendees": { "attendees": {
"type": "text" "type": "text"
}, },
"report_info": { "report_info": {
"properties": { "properties": {
"film_count": { "film_count": {
@@ -173,15 +171,23 @@
"file_count": { "file_count": {
"type": "integer" "type": "integer"
}, },
"is_address": {"type": "integer"}, "is_address": {
"is_mindex": {"type": "integer"}, "type": "integer"
"is_mintro": {"type": "integer"}, },
"is_sanad_data1": {"type": "integer"}, "is_mindex": {
"is_sanad_data2": {"type": "integer"} "type": "integer"
},
"is_mintro": {
"type": "integer"
},
"is_sanad_data1": {
"type": "integer"
},
"is_sanad_data2": {
"type": "integer"
}
} }
}, },
"mindex": { "mindex": {
"type": "text", "type": "text",
"fields": { "fields": {
@@ -251,18 +257,17 @@
} }
} }
}, },
"completion": {
"completion" : { "type": "completion",
"type" : "completion", "analyzer": "simple",
"analyzer" : "simple", "preserve_separators": true,
"preserve_separators" : true, "preserve_position_increments": true,
"preserve_position_increments" : true, "max_input_length": 50
"max_input_length" : 50
}, },
"sort_date_timestamp": { "sort_date_timestamp": {
"type": "long" "type": "long"
}, },
"permit_tags":{ "permit_tags": {
"type": "keyword" "type": "keyword"
}, },
"resource_info": { "resource_info": {
@@ -276,4 +281,4 @@
} }
} }
} }
} }
+19 -14
View File
@@ -5,7 +5,6 @@
"sub_type": { "sub_type": {
"type": "keyword" "type": "keyword"
}, },
"id": { "id": {
"type": "keyword" "type": "keyword"
}, },
@@ -41,37 +40,43 @@
} }
} }
}, },
"permit_tags": {
"permit_tags":{
"type": "keyword" "type": "keyword"
}, },
"search_state":{ "search_state": {
"type": "keyword" "type": "keyword"
}, },
"user_create":{ "user_create": {
"type": "keyword" "type": "keyword"
}, },
"time_create":{ "time_create": {
"type": "date" "type": "date"
}, },
"time_edit":{ "time_edit": {
"type": "date" "type": "date"
}, },
"file_links": { "file_links": {
"properties": { "properties": {
"title": {"type": "keyword"}, "title": {
"link": {"type": "text"}, "type": "keyword"
"type": {"type": "text"}, },
"description": {"type": "text"} "link": {
"type": "text"
},
"type": {
"type": "text"
},
"description": {
"type": "text"
}
} }
}, },
"meet_info": { "meet_info": {
"properties": { "properties": {
"id": { "id": {
"type": "keyword" "type": "keyword"
}, },
"format": { "sub_type": {
"type": "keyword" "type": "keyword"
}, },
"author": { "author": {
@@ -99,7 +104,7 @@
"id": { "id": {
"type": "keyword" "type": "keyword"
}, },
"format": { "sub_type": {
"type": "keyword" "type": "keyword"
}, },
"author": { "author": {
+7 -10
View File
@@ -2,6 +2,12 @@
"id": { "id": {
"type": "keyword" "type": "keyword"
}, },
"main_type": {
"type": "keyword"
},
"sub_type": {
"type": "keyword"
},
"title": { "title": {
"type": "text", "type": "text",
"fields": { "fields": {
@@ -43,10 +49,6 @@
} }
} }
}, },
"main_type": {
"type": "keyword"
},
"begin_date": { "begin_date": {
"type": "date" "type": "date"
}, },
@@ -56,7 +58,6 @@
"begin_year": { "begin_year": {
"type": "integer" "type": "integer"
}, },
"tags": { "tags": {
"type": "text", "type": "text",
"fields": { "fields": {
@@ -74,9 +75,5 @@
"ignore_above": 256 "ignore_above": 256
} }
} }
}, }
"format": {
"type": "keyword"
},
} }
+9
View File
@@ -0,0 +1,9 @@
from elastic_helper import ElasticHelper
es_helper = ElasticHelper(
es_url="http://127.0.0.1:6900",
es_user="elastic",
# es_pass="",
# path_mappings = ""
)