问题
如题:elasticsearch 从 _source 与 stored_fields 获取数据不一致?
大伙都知道,使用 elasticsearch 进行数据存储的时候,查询数据会默认存储在_source中,但是若开启了 store 存储(默认关闭),那么,就可以使用 stored_fields 进行查询。
但是查询出来的数据,有时候会和预想的结果不一致,那么我们来探究一下。
探索
设置一个mapping
PUT store_test_document
{
"mappings": {
"properties": {
"title": {
"type": "text",
"store": true
},
"date":