fix elastic kv ops.

This commit is contained in:
ruitao.liu
2020-09-10 15:59:16 +08:00
parent 3f7fbfddca
commit 6a5b38c0d4
2 changed files with 15 additions and 9 deletions

View File

@@ -20,10 +20,15 @@ var (
indexPrefix = ".seaweedfs_"
indexKV = ".seaweedfs_kv_entries"
mappingWithoutQuery = ` {
"mappings": {
"enabled": false
}
}`
"mappings": {
"enabled": false,
"properties": {
"Value":{
"type": "binary"
}
}
}
}`
)
type ESEntry struct {
@@ -32,7 +37,7 @@ type ESEntry struct {
}
type ESKVEntry struct {
Value string `json:Value`
Value []byte `json:"Value"`
}
func init() {