Skip to content

Commit 57d7edf

Browse files
Merge branch 'master' into gpu
2 parents bc5d193 + a53a4a2 commit 57d7edf

123 files changed

Lines changed: 5935 additions & 7018 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cover.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
name: Coverage
7+
jobs:
8+
coverage:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v5
13+
with:
14+
go-version: '1.25.x'
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Clean environment
18+
run: |
19+
go clean -cache -testcache -modcache
20+
rm -f profile.cov
21+
- name: Test
22+
run: |
23+
go test -coverprofile=profile.cov ./...
24+
- name: Remove non-GO entries from coverage profile
25+
run: |
26+
grep -E 'mode|\.go' profile.cov > profile_go.cov
27+
- name: Send coverage
28+
uses: shogo82148/actions-goveralls@v1
29+
with:
30+
path-to-profile: profile_go.cov

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ${{ matrix.platform }}
1414
steps:
1515
- name: Install Go
16-
uses: actions/setup-go@v1
16+
uses: actions/setup-go@v5
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Checkout code

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ![bleve](docs/bleve.png) bleve
22

33
[![Tests](https://github.com/blevesearch/bleve/actions/workflows/tests.yml/badge.svg?branch=master&event=push)](https://github.com/blevesearch/bleve/actions/workflows/tests.yml?query=event%3Apush+branch%3Amaster)
4-
[![Coverage Status](https://coveralls.io/repos/github/blevesearch/bleve/badge.svg?branch=master)](https://coveralls.io/github/blevesearch/bleve?branch=master)
4+
[![Coverage Status](https://coveralls.io/repos/github/blevesearch/bleve/badge.svg)](https://coveralls.io/github/blevesearch/bleve)
55
[![Go Reference](https://pkg.go.dev/badge/github.com/blevesearch/bleve/v2.svg)](https://pkg.go.dev/github.com/blevesearch/bleve/v2)
66
[![Join the chat](https://badges.gitter.im/join_chat.svg)](https://app.gitter.im/#/room/#blevesearch_bleve:gitter.im)
77
[![Go Report Card](https://goreportcard.com/badge/github.com/blevesearch/bleve/v2)](https://goreportcard.com/report/github.com/blevesearch/bleve/v2)
@@ -24,6 +24,7 @@ A modern indexing + search library in GO
2424
* [geo spatial search](https://github.com/blevesearch/bleve/blob/master/geo/README.md)
2525
* approximate k-nearest neighbors via [vector search](https://github.com/blevesearch/bleve/blob/master/docs/vectors.md)
2626
* [synonym search](https://github.com/blevesearch/bleve/blob/master/docs/synonyms.md)
27+
* [hierarchical nested search](https://github.com/blevesearch/bleve/blob/master/docs/hierarchy.md)
2728
* [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
2829
* Hybrid search: exact + semantic
2930
* Supports [RRF (Reciprocal Rank Fusion) and RSF (Relative Score Fusion)](docs/score_fusion.md)

analysis/analyzer/custom/custom.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func convertInterfaceSliceToStringSlice(interfaceSlice []interface{}, objType st
140140
if ok {
141141
stringSlice[i] = stringObj
142142
} else {
143-
return nil, fmt.Errorf(objType + " name must be a string")
143+
return nil, fmt.Errorf("%s name must be a string", objType)
144144
}
145145
}
146146

analysis/datetime/iso/iso.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func letterCounter(layout string, idx int) int {
118118
}
119119

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

124124
func parseISOString(layout string) (string, error) {
@@ -146,7 +146,7 @@ func parseISOString(layout string) (string, error) {
146146
// second text literal delimiter
147147
if idx == len(layout) {
148148
// text literal delimiter not found error
149-
return "", fmt.Errorf("invalid format string, expected text literal delimiter: " + string(textLiteralDelimiter))
149+
return "", fmt.Errorf("invalid format string, expected text literal delimiter: %s", string(textLiteralDelimiter))
150150
}
151151
// increment idx to skip the second text literal delimiter
152152
idx++

cmd/bleve/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

cmd/bleve/cmd/registry.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ var registryCmd = &cobra.Command{
7171
func printType(label string, types, instances []string) {
7272
sort.Strings(types)
7373
sort.Strings(instances)
74-
fmt.Printf(label + " Types:\n")
74+
fmt.Printf("%s Types:\n", label)
7575
for _, name := range types {
7676
fmt.Printf("\t%s\n", name)
7777
}
7878
fmt.Println()
79-
fmt.Printf(label + " Instances:\n")
79+
fmt.Printf("%s Instances:\n", label)
8080
for _, name := range instances {
8181
fmt.Printf("\t%s\n", name)
8282
}

cmd/bleve/vendor/github.com/inconshreveable/mousetrap/LICENSE

Lines changed: 0 additions & 13 deletions
This file was deleted.

cmd/bleve/vendor/github.com/inconshreveable/mousetrap/trap_others.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)