ElasticSearch字段前缀为“@”(ElasticSearch fields prefixed with “@”)
我在示例映射中看到很多字段,看起来像
@timestamp
,@timestamp
等。这是什么意思? 它是否有任何改变或是一些惯例? 谷歌很棘手,我没有找到任何参考文档。
这是一个例子: https : //gist.github.com/deverton/2970285
... "properties" : { "@fields": { "type": "object", "dynamic": true, "path": "full" }, "@message" : { "type" : "string", "index" : "analyzed" }, "@source" : { "type" : "string", "index" : "not_analyzed" }, "@source_host" : { "type" : "string", "index" : "not_analyzed" }, "@source_path" : { "type" : "string", "index" : "not_analyzed" }, "@tags": { "type": "string", "index" : "not_analyzed" }, "@timestamp" : { "type" : "date", "index" : "not_analyzed" }, "@type" : { "type" : "string", "index" : "not_analyzed" } } ...
I see a lot of fields in example mappings that look like
@timestamp
,@name
, etc.What does it mean? Does it make any change or is it some convention? It is tricky to google and I didn't find any reference reading the doc.
Here's an example: https://gist.github.com/deverton/2970285
... "properties" : { "@fields": { "type": "object", "dynamic": true, "path": "full" }, "@message" : { "type" : "string", "index" : "analyzed" }, "@source" : { "type" : "string", "index" : "not_analyzed" }, "@source_host" : { "type" : "string", "index" : "not_analyzed" }, "@source_path" : { "type" : "string", "index" : "not_analyzed" }, "@tags": { "type": "string", "index" : "not_analyzed" }, "@timestamp" : { "type" : "date", "index" : "not_analyzed" }, "@type" : { "type" : "string", "index" : "not_analyzed" } } ...
原文:https://stackoverflow.com/questions/22089060
更新时间:2022-11-02 21:11
最满意答案
您可以在
hg clone
,hg push
和hg pull
调用中添加--time
,Mercurial会告诉您操作花了多少时间。You can add
--time
to yourhg clone
,hg push
andhg pull
calls and Mercurial will tell you how much time the operation took.
相关问答
更多-
在Mercurial中使用hg恢复(Using hg revert in Mercurial)[2023-05-03]
是的,您可以删除它们。 这是一个安全功能,如果你回复了你不想恢复的东西。 Yes, you can delete them. It's a safety feature in case you reverted something you didn't mean to revert. -
您可以在hg clone , hg push和hg pull调用中添加--time ,Mercurial会告诉您操作花了多少时间。 You can add --time to your hg clone, hg push and hg pull calls and Mercurial will tell you how much time the operation took.
-
hg-git和作者的Pycon演示文稿解释了他对情况的看法。不知道如果你在谷歌搜索时遇到这些问题,但他们回答了我的问题。 hg-git and the author's Pycon presentation explaining his take on the situation.not sure if you came across these while googling but they answered my questions.
-
抱歉.. 愚蠢的错误我错过了hg clone http:/ - - - / {space} repo中源和目的地之间的空格。 我提到了这个链接。它被提到了 C:\ Users \ rose> hg clone http://joel.example.com:8000/食谱 我没能看到那个/和收件人之间的空间。 Sorry.. Silly mistake i missed a space between source and destination in the hg clone http:/- - - / ...
-
没有听说过......这回答了你的问题吗? :) 你应该查看hg-git邮件列表 。 看起来有一些问题与1.9但它们是固定的,没有2.0问题的报告。 与版本号可能暗示的相反,与1.9相比,Mercurial 2.0没有比平常更多的变化,因此扩展在没有变化的情况下仍然可以正常工作并不出乎意料。 我注意到hg-git主页没有提到Mercurial 2.0; 它可能还没有更新,你可以给Augie Fackler发邮件提醒。 Didn’t hear of any... Does that answer your q ...
-
Mercurial推问题(Mercurial push problem)[2024-02-01]
首先,正如许多其他人指出的那样,使用命名分支进行短期工作并不是一种推荐的做法。 命名分支主要用于长期生活的功能,或用于发布管理。 鉴于你处在这种情况下,有几个选项可用。 所有这些都涉及修改历史记录(因为您显然正在尝试改变您已完成的任务)。 一个是按照原样推动分支,从经验中学习,然后继续前进。 如果团队的其他成员对此没有问题,那就是向push命令添加“新分支”的情况。 如果团队的其他成员或者你真的希望历史能够保持清洁,那么你需要深入挖掘。 如果你不推动,那么肯定会克隆你当前的回购。 通过这种方式,您可以复制原 ... -
最初的问题意味着你的mercurial-server安装进入了混乱的状态。 创建“hg”用户后,安装脚本会在其主目录中放置一个名为“.mercurial-server”的配置文件。 这个文件以某种方式被删除了你的系统 - 也许你手工创建了“hg”用户? 这就是为什么删除并重新安装所有修复的东西,因为它运行安装脚本并创建了这个文件。 第二个问题只是“hg”用户无法读取您创建的“localhost”文件。 777给予所有人写入权限 - 永远不要这样做! 文件644和目录755就足够了。 看起来你将你的“umas ...
-
为什么我不能在Mercurial(hg)中删除这个远程书签?(Why can't I delete this remote bookmark in Mercurial (hg)?)[2021-12-21]
远程书签的名称是@ ,而不是@default 。 您需要做的就是在本地删除@default ,然后将@推回到远程存储库。 这将更新远程存储库以与您的@书签一致。 示例(Windows批处理文件): hg init a cd a echo >file1 hg ci -Am1 hg clone . ..\b echo >file2 hg ci -Am2 hg book @ hg log @REM *** At this point "a" has a bookmark on the changeset with ... -
原来我的语法错了。 Mercurial使用scp / ssh样式来引用文件,并且当文件路径是绝对的时,它需要双斜杠,就像我的情况一样。 另一种方法是在家中使用符号链接,或者为根fs添加两个斜杠。 代替: hg clone ssh://user@host/repo_dir 使用: hg clone ssh://user@host//repo_dir # ^ It turned out that i had the wrong syntax. Mercurial ...
-
我建议用system()或exec()来做这个,因为那是标准的操作过程。 I would suggest doing this with system() or exec(), simply because that's the standard operation procedure.