Skip to content

Commit

Permalink
udpated to new bleve.NewUsing() indexType API
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyen committed Sep 10, 2015
1 parent 76bd8e8 commit 2543da5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pindex_bleve.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ func NewBlevePIndexImpl(indexType, indexParams, path string,
kvStoreName = "metrics"
}

bindex, err :=
bleve.NewUsing(path, &bleveParams.Mapping, kvStoreName, kvConfig)
bindex, err := bleve.NewUsing(path, &bleveParams.Mapping,
bleve.Config.DefaultIndexType,
kvStoreName, kvConfig)
if err != nil {
return nil, nil, fmt.Errorf("bleve: new index, path: %s,"+
" kvStoreName: %s, kvConfig: %#v, err: %s",
Expand Down

0 comments on commit 2543da5

Please sign in to comment.