func (rs ResultSet) Less(i, j int) bool {
	return rs[i].Similarity > rs[j].Similarity
}
/*
func (r *Result) Less(other llrb.Item) bool {
return r.Similarity < other.(*Result).Similarity
}
package trindex
import (
	"bufio"
	"container/heap"
	"encoding/binary"
	"fmt"
	"os"
	"sync"
	"sync/atomic"
)
const (
	writeCacheSize = 250000
	cacheDocIDSize = 1e7
	cacheSize      = 1024 * 1024 * 700  
)
type storageType int
const (
	storageShort storageType = iota
	storageLong
)
type Index struct {
	filename     string
	sample_count int
	sample_size  int
	item_id      uint64
	item_db_lock sync.Mutex
	item_db      *os.File
	cache       map[uint64]uint32
	write_cache []uint64
	storageEngine storageType
	storage       IStorage
}
type Result struct {
	index      int
	ID         uint64
	Similarity float64
}
type ResultSet []*Result
func (r *Result) String() string {
	return fmt.Sprintf("<Result ID=%d Similarity=%.2f>", r.ID, r.Similarity)
}