摘要: 1. match_all - 查询所有文档 query = { "query": { "match_all": {} } } res = es.search(index="books", body=query) for hit in res["hits"]["hits"]: print(hit["_ 阅读全文
posted @ 2025-04-10 10:29 wellplayed 阅读(41) 评论(0) 推荐(0)
摘要: 在Django项目中配置全局日志组件 settings文件配置 from datetime import date # 日志配置 LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose 阅读全文
posted @ 2025-04-10 10:16 wellplayed 阅读(80) 评论(0) 推荐(0)