0
我在彈性搜索中的數據有問題,基本上我需要存儲擁有以下文檔的用戶ID,如果我查看意義上的數據我在userID字段上得到一個「壞字符串」錯誤。ElasticSearch字段顯示爲錯誤的字符串,導致搜索時出現錯誤
怎麼回事?
{"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":3,"max_score":1.0,"hits":[{"_index":"pheme","_type":"searches","_id":"AU__X0W7bLxGTuBqZB_E","_score":1.0,"_source":{
userID: "AU__X0W7bLxGTuBqZB_E", **<---- This shows as bad string in Sense**
mustHave: "Laravel",
notHave: "Moogle",
couldHave: "AngularJS",
exclusions: {
ID : ""
}
}
},{"_index":"pheme","_type":"searches","_id":"AU__ZNA0bLxGTuBqZCCn","_score":0.30685282,"_source":{
userID: "AU__X0W7bLxGTuBqZB_E",
mustHave: "Laravel",
notHave: "Moogle",
couldHave: "AngularJS",
exclusions: {
ID : ""
}
}
},{"_index":"pheme","_type":"searches","_id":"AVAJl5OZbMFoS2ut2YM9","_score":0.30685282,"_source":{
userID: "AU__X0W7bLxGTuBqZB_E",
mustHave: "Laravel",
notHave: "Moogle",
couldHave: "AngularJS",
exclusions: {
ID : ""
}
}
}]}}