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
*.zip
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": {
"type": "keyword"
},
"id": {
"type": "keyword"
},
@@ -21,7 +20,6 @@
"old_meet_id": {
"type": "integer"
},
"title": {
"type": "text",
"fields": {
@@ -34,13 +32,21 @@
"meet_no": {
"type": "integer"
},
"author": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"term_info": {
"properties": {
"id": {
"type": "keyword"
},
"format": {
"sub_type": {
"type": "keyword"
},
"author": {
@@ -63,7 +69,6 @@
}
}
},
"subtitle": {
"type": "text",
"fields": {
@@ -73,7 +78,6 @@
}
}
},
"subjects": {
"properties": {
"id": {
@@ -99,7 +103,6 @@
}
}
},
"tags": {
"type": "text",
"fields": {
@@ -127,14 +130,12 @@
}
}
},
"sanad_year": {
"type": "integer"
},
"sanad_date": {
"type": "date"
},
"amplify": {
"type": "text"
},
@@ -150,15 +151,12 @@
"address": {
"type": "text"
},
"audience": {
"type": "text"
},
"attendees": {
"type": "text"
},
"report_info": {
"properties": {
"film_count": {
@@ -173,15 +171,23 @@
"file_count": {
"type": "integer"
},
"is_address": {"type": "integer"},
"is_mindex": {"type": "integer"},
"is_mintro": {"type": "integer"},
"is_sanad_data1": {"type": "integer"},
"is_sanad_data2": {"type": "integer"}
"is_address": {
"type": "integer"
},
"is_mindex": {
"type": "integer"
},
"is_mintro": {
"type": "integer"
},
"is_sanad_data1": {
"type": "integer"
},
"is_sanad_data2": {
"type": "integer"
}
}
},
"mindex": {
"type": "text",
"fields": {
@@ -251,18 +257,17 @@
}
}
},
"completion" : {
"type" : "completion",
"analyzer" : "simple",
"preserve_separators" : true,
"preserve_position_increments" : true,
"max_input_length" : 50
"completion": {
"type": "completion",
"analyzer": "simple",
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"sort_date_timestamp": {
"type": "long"
},
"permit_tags":{
"permit_tags": {
"type": "keyword"
},
"resource_info": {
@@ -276,4 +281,4 @@
}
}
}
}
}
+19 -14
View File
@@ -5,7 +5,6 @@
"sub_type": {
"type": "keyword"
},
"id": {
"type": "keyword"
},
@@ -41,37 +40,43 @@
}
}
},
"permit_tags":{
"permit_tags": {
"type": "keyword"
},
"search_state":{
"search_state": {
"type": "keyword"
},
"user_create":{
"user_create": {
"type": "keyword"
},
"time_create":{
"time_create": {
"type": "date"
},
"time_edit":{
"time_edit": {
"type": "date"
},
"file_links": {
"properties": {
"title": {"type": "keyword"},
"link": {"type": "text"},
"type": {"type": "text"},
"description": {"type": "text"}
"title": {
"type": "keyword"
},
"link": {
"type": "text"
},
"type": {
"type": "text"
},
"description": {
"type": "text"
}
}
},
"meet_info": {
"properties": {
"id": {
"type": "keyword"
},
"format": {
"sub_type": {
"type": "keyword"
},
"author": {
@@ -99,7 +104,7 @@
"id": {
"type": "keyword"
},
"format": {
"sub_type": {
"type": "keyword"
},
"author": {
+7 -10
View File
@@ -2,6 +2,12 @@
"id": {
"type": "keyword"
},
"main_type": {
"type": "keyword"
},
"sub_type": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
@@ -43,10 +49,6 @@
}
}
},
"main_type": {
"type": "keyword"
},
"begin_date": {
"type": "date"
},
@@ -56,7 +58,6 @@
"begin_year": {
"type": "integer"
},
"tags": {
"type": "text",
"fields": {
@@ -74,9 +75,5 @@
"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 = ""
)