This commit is contained in:
init_mahdi
2025-11-06 17:09:06 +03:30
parent 9731c30c57
commit 2364089442
13 changed files with 984 additions and 1671 deletions
+46
View File
@@ -0,0 +1,46 @@
from pydantic import BaseModel
class MnTerm(BaseModel):
id: str
main_type : str
"sub_type": str
"title": str
"content": str
"author": str
{
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"begin_date": {
"type": "date"
},
"end_date": {
"type": "date"
},
"begin_year": {
"type": "integer"
},
"tags": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"keywords": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}