0
如何在多字段中搜索elasticsearch dsl python模块,例如title
和body
字段,并通过created_at
字段的字段DESC进行排序。Python elasticsearch dsl搜索多字段和顺序结果
我有这样的例子,搜索仅在title
领域:
q = request.GET.get('q', None)
s = Search(using=elastic_client, index='post').query('match', title=q)
response = s.execute()
我怎样才能做到这一点?