0
0

Merge pull request #451 from steveyen/master

Revert "optimize when disjunction query has only a single child"
This commit is contained in:
Marty Schoch 2016-09-26 17:57:45 -04:00 committed by GitHub
commit e66861d5ba

View File

@ -66,10 +66,6 @@ func (q *disjunctionQuery) SetMin(m float64) Query {
}
func (q *disjunctionQuery) Searcher(i index.IndexReader, m *IndexMapping, explain bool) (search.Searcher, error) {
if len(q.Disjuncts) == 1 {
return q.Disjuncts[0].Searcher(i, m, explain)
}
ss := make([]search.Searcher, len(q.Disjuncts))
for in, disjunct := range q.Disjuncts {
var err error