fix go vet issues
This commit is contained in:
parent
51a59cb05c
commit
84d1cdf216
|
@ -94,7 +94,7 @@ func UpdateAlias(alias string, add, remove []string) error {
|
|||
// something with this name already exists
|
||||
indexAlias, isAlias := index.(bleve.IndexAlias)
|
||||
if !isAlias {
|
||||
return fmt.Errorf("'%s' is not an alias")
|
||||
return fmt.Errorf("'%s' is not an alias", alias)
|
||||
}
|
||||
// build list of add indexes
|
||||
addIndexes := make([]bleve.Index, len(add))
|
||||
|
|
|
@ -103,7 +103,7 @@ type IndexMapping struct {
|
|||
DefaultField string `json:"default_field"`
|
||||
ByteArrayConverter string `json:"byte_array_converter"`
|
||||
CustomAnalysis *customAnalysis `json:"analysis,omitempty"`
|
||||
cache *registry.Cache `json:"_"`
|
||||
cache *registry.Cache
|
||||
}
|
||||
|
||||
// AddCustomCharFilter defines a custom char fitler for use in this mapping
|
||||
|
|
Loading…
Reference in New Issue