You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same happens with mappings. Looking at the code looks like there's no way to update mappings, only creating new ones:
func SetMapping(c *gin.Context) {
// ...
// check if mapping field is exists
if exists {
indexMappings := index.GetMappings()
if indexMappings != nil && indexMappings.Len() > 0 {
for field := range mappings.ListProperty() {
if _, ok := indexMappings.GetProperty(field); ok {
zutils.GinRenderJSON(c, http.StatusBadRequest, meta.HTTPResponseError{Error: "index [" + indexName + "] already exists mapping of field [" + field + "]"})
return
}
}
}
Thanks for the effort to create this tool and I wish you luck, but for now it seems too unstable for the use I am looking for and I will switch to an alternative search engine.
I receive a
'index [product] already exists'
error when trying to update an index.Version: Zinc 0.4.7, dockerized
Here's a simple and self-explanatory code to reproduce the problem:
The text was updated successfully, but these errors were encountered: