fix bug counting docs and make smolder selectable
This commit is contained in:
parent
04fd62dec3
commit
07ab49f602
@ -91,5 +91,6 @@ import (
|
||||
_ "github.com/blevesearch/bleve/index/store/moss"
|
||||
|
||||
// index types
|
||||
_ "github.com/blevesearch/bleve/index/smolder"
|
||||
_ "github.com/blevesearch/bleve/index/upside_down"
|
||||
)
|
||||
|
@ -387,7 +387,7 @@ func (udc *SmolderingCouch) countDocs(kvreader store.KVReader) (count, highDocNu
|
||||
}
|
||||
|
||||
if lastValidK != nil {
|
||||
_, highDocNum, err = DecodeUvarintAscending(k[1:])
|
||||
_, highDocNum, err = DecodeUvarintAscending(lastValidK[1:])
|
||||
if err != nil {
|
||||
return 0, 0, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user