func (f *TextFrame) Open() (err error) {
	if err = f.openFragments(); err != nil {
		return
	}
	err = f.td.Open()
	return
}
Open opens an existing frame
package indexer
import (
	"os"
	"path/filepath"
	"sort"
	"strconv"
	"strings"
	"sync"
	"unicode"
	"unicode/utf8"
	"github.com/deepfabric/bkdtree"
	"github.com/pilosa/pilosa"
	"github.com/pkg/errors"
)
type TextFrame struct {
	path  string
	index string
	name  string
	rwlock    sync.RWMutex                 
	fragments map[uint64]*pilosa.Fragment  
	td        *TermDict
}
func NewTextFrame(path, index, name string, overwrite bool) (f *TextFrame, err error) {
	var td *TermDict
	if td, err = NewTermDict(path, overwrite); err != nil {
		return
	}
	if overwrite {
		if err = os.RemoveAll(filepath.Join(path, "fragments")); err != nil {
			err = errors.Wrap(err, "")
			return
		}
	}
	f = &TextFrame{
		path:      path,
		index:     index,
		name:      name,
		td:        td,
		fragments: make(map[uint64]*pilosa.Fragment),
	}
	err = f.openFragments()
	return
}