|
|
|
@ -95,11 +95,11 @@ def main():
|
|
|
|
|
print("\n=== 文本精确搜索阶段 ===")
|
|
|
|
|
print("1. 正在执行Elasticsearch文本精确搜索...")
|
|
|
|
|
text_results = es_conn.search(
|
|
|
|
|
index="raw_texts",
|
|
|
|
|
index=ES_CONFIG['index_name'],
|
|
|
|
|
body={
|
|
|
|
|
"query": {
|
|
|
|
|
"match": {
|
|
|
|
|
"text.keyword": query
|
|
|
|
|
"user_input": query
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"size": 5
|
|
|
|
|