From 18a562c51797c33b95c0a8b2f90259e9a5ff9399 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Tue, 19 Aug 2025 08:28:46 +0800 Subject: [PATCH] 'commit' --- dsSchoolBuddy/ElasticSearch/T4_SelectAllData.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dsSchoolBuddy/ElasticSearch/T4_SelectAllData.py b/dsSchoolBuddy/ElasticSearch/T4_SelectAllData.py index 02e4e411..a178993e 100644 --- a/dsSchoolBuddy/ElasticSearch/T4_SelectAllData.py +++ b/dsSchoolBuddy/ElasticSearch/T4_SelectAllData.py @@ -41,12 +41,6 @@ def select_all_data(index_name): print(f" 内容: {hit['_source'].get('user_input', '')}") print(f" 标签: {hit['_source'].get('tags', '')}") print(f" 时间戳: {hit['_source'].get('timestamp', '')}") - # 在循环中添加打印完整数据结构的代码 - # if i == 1: # 只打印第一条数据的完整结构 - # print("完整数据结构:") - # import pprint - # pp = pprint.PrettyPrinter(indent=4) - # pp.pprint(hit['_source']) print("-" * 50) except Exception as e: print(f"查询出错: {e}")