no message
parent
252eab9a93
commit
0735ca6904
|
@ -21,7 +21,7 @@ func MysqlToElasticSearchMapping(types string,Key string) string{
|
|||
return "keyword"
|
||||
}
|
||||
if(strings.Contains(types,"int(")){
|
||||
return "interger"
|
||||
return "integer"
|
||||
}
|
||||
if(strings.Contains(types,"longblob")){
|
||||
return "text"
|
||||
|
|
|
@ -24,4 +24,5 @@ func (*JsonObject)InsertArrary(key string,arr interface{}) error {
|
|||
if reflect.TypeOf(arr).Kind() != reflect.Array{
|
||||
return errors.New("wrong parameter")
|
||||
}
|
||||
return nil
|
||||
}
|
Loading…
Reference in New Issue