Commit 22ae3621 authored by 赵威's avatar 赵威

rewrite data with es_scan

parent 458df7cd
......@@ -2,7 +2,7 @@ git+ssh://git@git.wanmeizhensuo.com/backend/gm-rpcd.git@v0.2.5
faiss-cpu==1.6.3
pandas==1.1.1
elasticsearch==7.9.1
elasticsearch==7.0.0
opencv-python==4.4.0.42
pillow==7.2.0
dlib==19.21.0
......
This diff is collapsed.
......@@ -43,4 +43,4 @@ def es_scan(doc, body, es=None, rw="read"):
if es is None:
es = get_es()
index = es_index_adapt(index_prefix="gm-dbmw", doc_type=doc, rw=rw)
return helpers.scan(es, index, doc_type=doc)
return helpers.scan(es, index=index, query=body)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment