func (s *Store) Finish() {

	// empty store
	if len(s.docids) == 0 {
		return
	}

	l := make(limiter, runtime.GOMAXPROCS(0))

	var wg sync.WaitGroup

	sort.Sort(s.docids)

	for i := range s.rhashes {
		l.enter()
		wg.Add(1)
		go func(i int) {
			s.rhashes[i].finish()
			l.leave()
			wg.Done()
		}(i)
	}
	wg.Wait()
}
// Finish prepares the store for searching.  This must be called once after all
// the signatures have been added via Add().
Finish prepares the store for searching.  This must be called once after all
the signatures have been added via Add().
// Finish prepares the store for searching . This must be called once after all // the signatures have been added via Add () .
func (s *Store) Finish() {
	if len(s.docids) == 0 {
		return
	}
	l := make(limiter, runtime.GOMAXPROCS(0))
	var wg sync.WaitGroup
	sort.Sort(s.docids)
	for i := range s.rhashes {
		l.enter()
		wg.Add(1)
		go func(i int) {
			s.rhashes[i].finish()
			l.leave()
			wg.Done()
		}(i)
	}
	wg.Wait()
}
func ( s * Store ) Finish ( ) { if len ( s . docids ) == 0 { return } l := make ( limiter , runtime . GOMAXPROCS ( 0 ) ) var wg sync . WaitGroup sort . Sort ( s . docids ) for i := range s . rhashes { l . enter ( ) wg . Add ( 1 ) go func ( i int ) { s . rhashes [ i ] . finish ( ) l . leave ( ) wg . Done ( ) } ( i ) } wg . Wait ( ) }
Finish prepares the store for searching.
Finish prepares the store for searching .
// empty store