0
0
bleve/index/store/gouchstore/util.go
Marty Schoch d48eee948e refactored index to separate out kv storage
now how pluggable options for
leveldb
gouchstore
in memory only
2014-05-09 16:37:04 -04:00

11 lines
246 B
Go

package gouchstore
import (
"github.com/mschoch/gouchstore"
)
func kvToDocDocInfo(key, val []byte) (*gouchstore.Document, *gouchstore.DocumentInfo) {
id := string(key)
return gouchstore.NewDocument(id, val), gouchstore.NewDocumentInfo(id)
}