我有一个索引:(Elasticsearch 5.5.1)elasticsearch -no映射发现
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]没有映射。
为什么这种差异?
第一个要求是Kibana? – aclokay
@aclokay我使用Kibana作为我的测试工具,但是我想将它移除到我的应用程序,并直接调用Elastic。我需要改变以使它与Elastic一起使用? – bilpor