在 elasticsearch 中进行搜索操作时,我希望过滤掉元数据并在响应中仅返回“_source”。我可以通过以下方式通过“搜索”实现相同的目标:
out1 = es.search(index='index.com', filter_path=['hits.hits._id', 'hits.hits._source'])
但是当我用 scan 方法做同样的事情时,它只返回一个空列表:
out2 = helpers.scan(es, query, index='index.com', doc_type='2016-07-27',filter_path= ['hits.hits._source'])
问题可能与我处理“扫描”方法响应的方式有关,或者与我将值传递给 filter_path 的方式有关。为了检查输出,我将 out2 解析为一个列表。
以下 URL 中“blob”后面的单词指向给定存储库的“master”分支:
https://github.com/celery/celery/blob/master/docs/django/first-steps-with-django.rst
Run Code Online (Sandbox Code Playgroud)
根据上述约定,以下 URL 指向什么?
https://github.com/celery/celery/blob/241d2e8ca85a87a2a6d01380d56eb230310868e3/docs/django/first-steps-with-django.rst
Run Code Online (Sandbox Code Playgroud)
我正在阅读celery的最新文档,并想在 Github 上查看它的来源,因此问题来了。请注意,我可以通过转到“master”分支来查看master文档的源代码。