嗨!
我在配置索引模式时遇到了将日期字段设置为<form data-ajax="true" data-ajax-method="POST" class="form-horizontal" action="/My/AjaxAddNew" method="post">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="AddNew">Add New Title </h4>
</div>
<div class="modal-body">
<div class="text-danger validation-summary-valid" data-valmsg-summary="true"><ul><li style="display:none"></li>
</ul></div>
<div class="form-group">
<label class="col-md-3 control-label" for="SomeProperty">SomeProperty</label>
<div class="col-md-9">
<input class="form-control" type="text" data-val="true" data-val-number="The field SomeProperty must be a number." data-val-range="The field SomeProperty must be between 0,1 and ∞." data-val-range-max="Infinity" data-val-range-min="0.1" data-val-required="SomeProperty is required" id="SomeProperty" name="SomeProperty" value="0">
<span class="text-danger field-validation-valid" data-valmsg-for="SomeProperty" data-valmsg-replace="true"></span>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
<input name="__RequestVerificationToken" type="hidden" value="....."></form>
的问题。当我在时间段名称上选择我的日期时,我无法对time-based
部分的任何数据进行Vizualise。
但是,当我取消选中名为Discover
的框时,会显示所有数据:
也许我在制图过程中遗忘了什么?我为这个索引设置了映射:
Index contains time-based events
我目前也尝试使用"index_test" : {
"mappings": {
"tr": {
"_source": {
"enabled":true
},
"properties" : {
"id" : { "type" : "integer" },
"volume" : { "type" : "integer" },
"high" : { "type" : "float" },
"low" : { "type" : "float" },
"timestamp" : { "type" : "date", "format" : "yyyy-MM-dd HH:mm:ss" }
}
}
}'
}
,似乎没有找到任何数据显示。我认为不能因为这个timelion
未经检查...有关如何将此时间戳设置为time-based
而不放弃time-based
部分的数据访问的任何想法?