Commit ff80f4ed authored by lixiaofang's avatar lixiaofang

add

parent e02d6883
......@@ -238,18 +238,14 @@ class GroupUtils(object):
{"term": {"is_deleted": False}},
{"term": {"is_default": 0}},
{"range": {"topic_id_list": {"gte": 0}}},
{"term": {"is_cover": True}}
],
"should": [
{"term": {"is_cover": True}},
{'multi_match': multi_match}
],
"minimum_should_match": 1
]
}
}
q["_source"] = {
"includes": ["id", "is_online", "is_deleted", "is_default", "topic_id_list", "is_cover",
"offline_score",
"is_default"]
"includes": ["id", "is_online", "is_deleted", "is_default", "name", "description", "tag_name",
"is_cover", "offline_score", "is_default"]
}
q["sort"] = [
{
......@@ -271,6 +267,8 @@ class GroupUtils(object):
es_cli_obj = ESPerform.get_cli()
result_dict = ESPerform.get_search_results(es_cli_obj, "pictorial", q, offset, size)
logging.info("get qqqqqq:%s" % q)
logging.info("get result_dict:%s" % result_dict)
return result_dict
......
This diff is collapsed.
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