8,327
社区成员
发帖
与我相关
我的任务
分享
@app.route('/s/<string:name>')
@app.route('/s/<string:name>/<int:pn>')
def tags(name,pn=1):
es = es.search(index="xxxx", body={'query':{'match':{'title':name}}}, size=20)
res = res['hits']['hits']
return render_template('tags.html', res=res)