Commit 8675f182 authored by zhanglu's avatar zhanglu

Merge branch 'feature/sun_topic2es' into 'test'

index name change

See merge request !182
parents 2132b4f7 560b4133
......@@ -21,7 +21,7 @@ def business_topic_search(filters, nfilters=None, sorts_by=None, offset=0, size=
result_list = TopicUtils.list_topic_ids(
filters=filters, nfilters=nfilters, sorts_by=sorts_by,
offset=offset, size=size, filter_online=False,
index_name="business_topic"
index_name="topic"
)
topic_ids = [item["_source"]["id"] for item in result_list["hits"]]
return {"topic_ids": topic_ids, "total_count": result_list["total_count"]}
......
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