This commit is contained in:
init_mahdi
2025-11-08 09:11:44 +03:30
parent 2364089442
commit a4fc7151f7
3 changed files with 188 additions and 58 deletions
-46
View File
@@ -1,46 +0,0 @@
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
}
}
}
}