func NewUpsideDownCouch(s store.KVStore, analysisQueue *index.AnalysisQueue) *UpsideDownCouch { return &UpsideDownCouch{ version: Version, fieldCache: index.NewFieldCache(), store: s, analysisQueue: analysisQueue, stats: &indexStat{}, } }
func NewUpsideDownCouch(storeName string, storeConfig map[string]interface{}, analysisQueue *index.AnalysisQueue) (index.Index, error) { return &UpsideDownCouch{ version: Version, fieldCache: index.NewFieldCache(), storeName: storeName, storeConfig: storeConfig, analysisQueue: analysisQueue, stats: &indexStat{}, }, nil }
func NewSmolderingCouch(storeName string, storeConfig map[string]interface{}, analysisQueue *index.AnalysisQueue) (index.Index, error) { rv := &SmolderingCouch{ version: Version, fieldCache: index.NewFieldCache(), storeName: storeName, storeConfig: storeConfig, analysisQueue: analysisQueue, } rv.stats = &indexStat{i: rv} return rv, nil }
func NewFirestorm(storeName string, storeConfig map[string]interface{}, analysisQueue *index.AnalysisQueue) (index.Index, error) { rv := Firestorm{ storeName: storeName, storeConfig: storeConfig, compensator: NewCompensator(), analysisQueue: analysisQueue, fieldCache: index.NewFieldCache(), docCount: 0, highDocNumber: 0, stats: &indexStat{}, } rv.stats.f = &rv rv.garbageCollector = NewGarbageCollector(&rv) rv.lookuper = NewLookuper(&rv) rv.dictUpdater = NewDictUpdater(&rv) return &rv, nil }