0
0

fix bug counting docs and make smolder selectable

This commit is contained in:
Marty Schoch 2016-09-02 13:46:40 -04:00
parent 04fd62dec3
commit 07ab49f602
2 changed files with 2 additions and 1 deletions

View File

@ -91,5 +91,6 @@ import (
_ "github.com/blevesearch/bleve/index/store/moss" _ "github.com/blevesearch/bleve/index/store/moss"
// index types // index types
_ "github.com/blevesearch/bleve/index/smolder"
_ "github.com/blevesearch/bleve/index/upside_down" _ "github.com/blevesearch/bleve/index/upside_down"
) )

View File

@ -387,7 +387,7 @@ func (udc *SmolderingCouch) countDocs(kvreader store.KVReader) (count, highDocNu
} }
if lastValidK != nil { if lastValidK != nil {
_, highDocNum, err = DecodeUvarintAscending(k[1:]) _, highDocNum, err = DecodeUvarintAscending(lastValidK[1:])
if err != nil { if err != nil {
return 0, 0, err return 0, 0, err
} }