bugfixes more search results and dump restore options
This commit is contained in:
parent
f4fcf0d9a8
commit
3cd460318a
124 changed files with 3915 additions and 9579 deletions
10
vendor/github.com/blevesearch/bleve/index/store/gtreap/store.go
generated
vendored
10
vendor/github.com/blevesearch/bleve/index/store/gtreap/store.go
generated
vendored
|
|
@ -17,6 +17,8 @@ package gtreap
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/blevesearch/bleve/index/store"
|
||||
|
|
@ -42,6 +44,14 @@ func itemCompare(a, b interface{}) int {
|
|||
}
|
||||
|
||||
func New(mo store.MergeOperator, config map[string]interface{}) (store.KVStore, error) {
|
||||
path, ok := config["path"].(string)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("must specify path")
|
||||
}
|
||||
if path != "" {
|
||||
return nil, os.ErrInvalid
|
||||
}
|
||||
|
||||
rv := Store{
|
||||
t: gtreap.NewTreap(itemCompare),
|
||||
mo: mo,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue