switch back to upsidedown as default index before merge to master
This commit is contained in:
parent
d3106493de
commit
94b0367e47
|
@ -21,10 +21,13 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/blevesearch/bleve/index"
|
"github.com/blevesearch/bleve/index"
|
||||||
"github.com/blevesearch/bleve/index/scorch"
|
|
||||||
"github.com/blevesearch/bleve/index/store/gtreap"
|
"github.com/blevesearch/bleve/index/store/gtreap"
|
||||||
|
"github.com/blevesearch/bleve/index/upsidedown"
|
||||||
"github.com/blevesearch/bleve/registry"
|
"github.com/blevesearch/bleve/registry"
|
||||||
"github.com/blevesearch/bleve/search/highlight/highlighter/html"
|
"github.com/blevesearch/bleve/search/highlight/highlighter/html"
|
||||||
|
|
||||||
|
// force import of scorch so its accessible by default
|
||||||
|
_ "github.com/blevesearch/bleve/index/scorch"
|
||||||
)
|
)
|
||||||
|
|
||||||
var bleveExpVar = expvar.NewMap("bleve")
|
var bleveExpVar = expvar.NewMap("bleve")
|
||||||
|
@ -69,7 +72,7 @@ func init() {
|
||||||
Config.DefaultMemKVStore = gtreap.Name
|
Config.DefaultMemKVStore = gtreap.Name
|
||||||
|
|
||||||
// default index
|
// default index
|
||||||
Config.DefaultIndexType = scorch.Name
|
Config.DefaultIndexType = upsidedown.Name
|
||||||
|
|
||||||
bootDuration := time.Since(bootStart)
|
bootDuration := time.Since(bootStart)
|
||||||
bleveExpVar.Add("bootDuration", int64(bootDuration))
|
bleveExpVar.Add("bootDuration", int64(bootDuration))
|
||||||
|
|
Loading…
Reference in New Issue