elasticsearch - 找不到映射(elasticsearch -no mapping found)
我有一个索引:( Elasticsearch 5.5.1)
PUT myindex { "settings" : { "number_of_shards" : 3, "number_of_replicas" : 2 }, "mappings" : { "mymap" : { "properties" : { "data" : { "type": "text" } } } } }
现在,当我执行以下操作时:
GET myindex/_search?q=content:*&filter_path=hits.hits._source.path.real&sort=file.last_modified:desc&size=10
我收到的数据是我期望的所有数据。
如果我将该调用改为直接针对Elasticsearch工作:
GET localhost:9200/myindex/_search?q=content:*&filter_path=hits.hits._source.path.real&sort=file.last_modified:desc&size=10
它抱怨说没有找到[file.last_modified]的映射来排序。
为何差异?
I have an index: (Elasticsearch 5.5.1)
PUT myindex { "settings" : { "number_of_shards" : 3, "number_of_replicas" : 2 }, "mappings" : { "mymap" : { "properties" : { "data" : { "type": "text" } } } } }
Now when I perform the following:
GET myindex/_search?q=content:*&filter_path=hits.hits._source.path.real&sort=file.last_modified:desc&size=10
The data I receive is the data I expect all good.
if I change the call to work directly against Elasticsearch :
GET localhost:9200/myindex/_search?q=content:*&filter_path=hits.hits._source.path.real&sort=file.last_modified:desc&size=10
it complains that there's No mapping found for [file.last_modified] in order to sort on.
Why the discrepancy?
原文:https://stackoverflow.com/questions/45564017
最满意答案
实时API不支持匿名访问。 所有用户都必须拥有Google帐户,并且必须明确授权查看或写入该文件。
The realtime API does not support anonymous access. All users must have a Google account and be explicitly authorized to view or write to the file.
相关问答
更多-
不,这目前不可行。 我们不跟踪与每个时间戳相关联的时间戳。 No, this isn't currently possible. We don't track timestamps associated with each each.
-
实时API不支持匿名访问。 所有用户都必须拥有Google帐户,并且必须明确授权查看或写入该文件。 The realtime API does not support anonymous access. All users must have a Google account and be explicitly authorized to view or write to the file.
-
从API的角度来看,实时文档被设计为持久存储。 这些文件是长期存在的,没有必要重新创建它们或在其他地方存储数据。 如果你想在其他地方复制数据,那么如何以及何时这样做听起来像是一个设计决定,你需要根据你的应用程序给出任何有意义的东西。 From an API perspective, the realtime documents are designed to be persistent storage. The files are long lived, and there is there is no n ...
-
使用google-drive-realtime-api进行多个文本框协作(Multiple Text Box collaboration using google-drive-realtime-api)[2023-07-16]
在initializeModel中,您创建了两个collaborationStrings,但是将它们分配给根“text”中的相同键。 稍后,您将从string1和string2的根目录中获取相同的字符串“text”: var string1 = doc.getModel()。getRoot()。get('text'); var string2 = doc.getModel()。getRoot()。get('text'); 您需要将这两个地方的“文本”中的一个更改为其他内容。 In initializeMod ... -
Google Drive Realtime API是否有问题跟踪器?(Is there an issue tracker for Google Drive Realtime API?)[2021-08-09]
Google云端硬盘服务没有正式的错误跟踪器。 此页面列出了使用Google云端硬盘遇到的已知问题: http://support.google.com/drive/bin/static.py?hl=en&page=known_issues.cs 而另一个链接到Google云端硬盘服务论坛,您可以实际报告问题(查看建议的类别): https://productforums.google.com/forum/m/#!forum/drive There are no official bug tracker ... -
从Google Drive API启用“Open FIle” - RealTime API(Enable 'Open FIle" from Google Drive API - RealTime API)[2023-08-16]
请查看有关将Google Picker与云端硬盘整合的文档 。 google.load('picker', '1'); 有一个完整的js集成源代码。 Please check this documentation about integrating Google Picker with Drive. google.load('picker', '1'); There is a full sourcecode of js integration. -
实时API用于使用您自己的自定义文档类型创建协作项目,而不是用于编辑Google文档/电子表格/演示文稿类型。 如果要编辑它们,则需要使用应用程序脚本 。 The realtime API is for creating collaborative items using your own custom document type, not for editing the Google Documents/Spreadsheets/Presentations types. If you want to ed ...
-
目前Realtime API不支持Android,抱歉。 但! Google正在努力解决这个问题,它很快就会推出。 谷歌对用户实时在网络和移动应用程序之间同时协作的可能性感到兴奋。 那会摇滚! Currently Realtime API does not support Android, sorry. BUT! Google are working on this, and it should be available quite soon. Google are excited about the po ...
-
通过进一步的调查,我设法找到了我的问题的答案。 实际上,遗憾的是,您目前无法在appdata文件夹中放置实时文件。 这是我们正在考虑添加的内容,但在大多数情况下它没有意义,因为appdata文件夹的内容仅限于单个用户。 Cheryl Simon在Google云端硬盘开发者面前发帖 - https://plus.google.com/communities/107264319205603895037 Through further investigation I have managed to find th ...
-
Google云端硬盘实时API“获取”端点未按预期工作(Google Drive Realtime API “get” endpoint not working as expected)[2022-07-03]
使用API Playground调用“get”可获取与API playground应用程序关联的实时文档,而不是与您的应用程序关联的实时文档。 如果你更新并获得API游乐场,你应该看到内容。 Calling "get" using the API Playground gets the realtime document associated with the API playground app, not the realtime document associated with your app. If ...