func NewMatchAllSearcher(index index.Index, boost float64, explain bool) (*MatchAllSearcher, error) { reader, err := index.DocIDReader("", "") if err != nil { return nil, err } scorer := scorers.NewConstantScorer(1.0, boost, explain) return &MatchAllSearcher{ index: index, reader: reader, scorer: scorer, }, nil }