我也在使用ElasticSearch搜索搜索结果。我的问题是,如何将我的查询集与JSON对象的有序列表结合起来?get_queryset只允许我返回一个变量(查询集),但我需要get_context_data能够访问查询集和搜索结果的相关元数据。我创建了一个有效的下面的hack,但正在寻找更好的解决方案。# just get 2 documents, in my actual code the queryset is generated by a list of IDs
# from the Elastic<em