Update bleve library to latest version

This commit is contained in:
ionutboangiu
2024-04-11 18:22:10 +03:00
committed by Dan Christian Bogos
parent 2c1a90c9c6
commit e488f7f13a
6 changed files with 176 additions and 225 deletions

View File

@@ -27,9 +27,9 @@ import (
"strings"
"time"
"github.com/blevesearch/bleve"
"github.com/blevesearch/bleve/search"
"github.com/blevesearch/bleve/search/query"
"github.com/blevesearch/bleve/v2"
"github.com/blevesearch/bleve/v2/search"
"github.com/blevesearch/bleve/v2/search/query"
"github.com/cgrates/birpc/context"
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/engine"

View File

@@ -22,13 +22,12 @@ import (
"encoding/json"
"os"
"reflect"
"runtime"
"strconv"
"testing"
"time"
"github.com/blevesearch/bleve"
"github.com/blevesearch/bleve/search"
"github.com/blevesearch/bleve/v2"
"github.com/blevesearch/bleve/v2/search"
"github.com/cgrates/birpc/context"
"github.com/cgrates/cgrates/config"
"github.com/cgrates/cgrates/engine"
@@ -171,7 +170,6 @@ func TestAnalyzersListenAndServe(t *testing.T) {
}
go func() {
time.Sleep(time.Nanosecond)
runtime.Gosched()
anz.db.Close()
}()
anz.ListenAndServe(make(chan struct{}))

View File

@@ -23,11 +23,11 @@ import (
"strconv"
"time"
"github.com/blevesearch/bleve/index/scorch"
"github.com/blevesearch/bleve/index/store/boltdb"
"github.com/blevesearch/bleve/index/store/goleveldb"
"github.com/blevesearch/bleve/index/store/moss"
"github.com/blevesearch/bleve/index/upsidedown"
"github.com/blevesearch/bleve/v2/index/scorch"
"github.com/blevesearch/bleve/v2/index/upsidedown"
"github.com/blevesearch/bleve/v2/index/upsidedown/store/boltdb"
"github.com/blevesearch/bleve/v2/index/upsidedown/store/goleveldb"
"github.com/blevesearch/bleve/v2/index/upsidedown/store/moss"
"github.com/cgrates/cgrates/utils"
)

View File

@@ -25,11 +25,11 @@ import (
"testing"
"time"
"github.com/blevesearch/bleve/index/scorch"
"github.com/blevesearch/bleve/index/store/boltdb"
"github.com/blevesearch/bleve/index/store/goleveldb"
"github.com/blevesearch/bleve/index/store/moss"
"github.com/blevesearch/bleve/index/upsidedown"
"github.com/blevesearch/bleve/v2/index/scorch"
"github.com/blevesearch/bleve/v2/index/upsidedown"
"github.com/blevesearch/bleve/v2/index/upsidedown/store/boltdb"
"github.com/blevesearch/bleve/v2/index/upsidedown/store/goleveldb"
"github.com/blevesearch/bleve/v2/index/upsidedown/store/moss"
"github.com/cgrates/cgrates/utils"
)