Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ A modern indexing + search library in GO
* [geo spatial search](https://github.com/blevesearch/bleve/blob/master/geo/README.md)
* approximate k-nearest neighbors via [vector search](https://github.com/blevesearch/bleve/blob/master/docs/vectors.md)
* [synonym search](https://github.com/blevesearch/bleve/blob/master/docs/synonyms.md)
* [hierarchical nested search](https://github.com/blevesearch/bleve/blob/master/docs/hierarchy.md)
* [tf-idf](https://github.com/blevesearch/bleve/blob/master/docs/scoring.md#tf-idf) / [bm25](https://github.com/blevesearch/bleve/blob/master/docs/scoring.md#bm25) scoring models
* Hybrid search: exact + semantic
* Query time boosting
Expand Down
2 changes: 1 addition & 1 deletion analysis/analyzer/custom/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func convertInterfaceSliceToStringSlice(interfaceSlice []interface{}, objType st
if ok {
stringSlice[i] = stringObj
} else {
return nil, fmt.Errorf(objType + " name must be a string")
return nil, fmt.Errorf("%s name must be a string", objType)
}
}

Expand Down
4 changes: 2 additions & 2 deletions analysis/datetime/iso/iso.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func letterCounter(layout string, idx int) int {
}

func invalidFormatError(character byte, count int) error {
return fmt.Errorf("invalid format string, unknown format specifier: " + strings.Repeat(string(character), count))
return fmt.Errorf("invalid format string, unknown format specifier: %s", strings.Repeat(string(character), count))
}

func parseISOString(layout string) (string, error) {
Expand Down Expand Up @@ -146,7 +146,7 @@ func parseISOString(layout string) (string, error) {
// second text literal delimiter
if idx == len(layout) {
// text literal delimiter not found error
return "", fmt.Errorf("invalid format string, expected text literal delimiter: " + string(textLiteralDelimiter))
return "", fmt.Errorf("invalid format string, expected text literal delimiter: %s", string(textLiteralDelimiter))
}
// increment idx to skip the second text literal delimiter
idx++
Expand Down
4 changes: 2 additions & 2 deletions cmd/bleve/cmd/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ var registryCmd = &cobra.Command{
func printType(label string, types, instances []string) {
sort.Strings(types)
sort.Strings(instances)
fmt.Printf(label + " Types:\n")
fmt.Printf("%s Types:\n", label)
for _, name := range types {
fmt.Printf("\t%s\n", name)
}
fmt.Println()
fmt.Printf(label + " Instances:\n")
fmt.Printf("%s Instances:\n", label)
for _, name := range instances {
fmt.Printf("\t%s\n", name)
}
Expand Down
Loading
Loading