0
0
Fork 0

fix go vet issues

This commit is contained in:
Marty Schoch 2014-10-29 09:31:03 -04:00
parent 51a59cb05c
commit 84d1cdf216
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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