func NewQueryResult(limit int) (qr *QueryResult) {
	qr = &QueryResult{
		Bm: pilosa.NewBitmap(),
		Oa: datastructures.NewOrderedArray(limit),
	}
	return
}
NewQueryResult creates an empty QueryResult
package indexer
import (
	"fmt"
	"os"
	"path/filepath"
	"sync"
	"github.com/deepfabric/bkdtree"
	"github.com/deepfabric/go-datastructures"
	"github.com/deepfabric/indexer/cql"
	"github.com/pilosa/pilosa"
	"github.com/pkg/errors"
)
const (
	LiveDocs string = "__liveDocs"  
)
var (
	ErrUnknownProp = errors.New("unknown property")
	ErrDocExist    = errors.New("document already exist")
)
type Index struct {
	MainDir string
	DocProt *cql.DocumentWithIdx  
	rwlock    sync.RWMutex  
	intFrames map[string]*IntFrame
	txtFrames map[string]*TextFrame
	liveDocs  *TextFrame  
	dirty     bool
}
type QueryResult struct {
	Bm *pilosa.Bitmap                
	Oa *datastructures.OrderedArray  
}
func (qr *QueryResult) Merge(other *QueryResult) {
	qr.Bm.Merge(other.Bm)
	qr.Oa.Merge(other.Oa)
}