{ "state":"open", "settings":{ "index":{ "creation_date":"1663840427963", "number_of_shards":"2", "number_of_replicas":"0", "uuid":"sOhThZy6Q5mclbLQnNSeXA", "version":{ "created":"7070099" }, "provided_name":"cms001_arc" } }, "mappings":{ "_doc":{ "properties":{ "category_id":{ "type":"integer" }, "updated_at":{ "type":"text", "fields":{ "keyword":{ "ignore_above":256, "type":"keyword" } } }, "intro":{ "analyzer":"ik_max_word", "type":"text" }, "created_at":{ "format":"yyyy-MM-dd HH:mm:ss", "type":"date" }, "id":{ "type":"integer" }, "title":{ "analyzer":"ik_max_word", "type":"text" }, "content":{ "analyzer":"ik_max_word", "type":"text" }, "url":{ "type":"text", "fields":{ "keyword":{ "ignore_above":256, "type":"keyword" } } } } } }, "aliases":[ ], "primary_terms":{ "0":1, "1":1 }, "in_sync_allocations":{ "0":[ "gk5Gru6qTlmK4T6PYe5m8Q" ], "1":[ "dUdPW6oGSRaQpm4-08Pncg" ] } }
ElasticSearch的日期查询,当使用范围查询,输入的起止时间为日期格式的时候,系统会一直提示查询中。尝试把日期格式改为日期+时间格式的时候,查询就完全正常了。