diff --git a/pindex_bleve.go b/pindex_bleve.go index 33b6c1c..578ead1 100644 --- a/pindex_bleve.go +++ b/pindex_bleve.go @@ -457,7 +457,8 @@ func (t *BleveDest) ConsistencyWait(partition, partitionUUID string, // --------------------------------------------------------- -func (t *BleveDest) Count(pindex *cbgt.PIndex, cancelCh <-chan bool) (uint64, error) { +func (t *BleveDest) Count(pindex *cbgt.PIndex, cancelCh <-chan bool) ( + uint64, error) { return t.bindex.DocCount() } @@ -556,6 +557,7 @@ func (t *BleveDest) Stats(w io.Writer) (err error) { w.Write(prefixPIndexStoreStats) t.m.Lock() + t.stats.WriteJSON(w) if t.bindex != nil {