Explorar o código

es过滤条件修改

lizongze hai 1 ano
pai
achega
07b0e22ddd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ybw/utils/databases.py

+ 1 - 1
ybw/utils/databases.py

@@ -74,7 +74,7 @@ def es_query(title: str, publish_time: int):
                         "multi_match": {
                             "query": title,
                             "type": "phrase",
-                            "fields": ["title"]
+                            "fields": ["title","detail"]
                         }
                     },
                     {"range": {'publishtime': {"from": stime, "to": etime}}}