0
0
Fork 0

better fix for returning on first error

closes #126
This commit is contained in:
Marty Schoch 2014-11-25 10:04:15 -05:00
parent 3c886276ed
commit 316970df13
1 changed files with 5 additions and 6 deletions

View File

@ -398,15 +398,14 @@ func MultiSearch(req *SearchRequest, indexes ...Index) (*SearchResult, error) {
}
}
case err, ok = <-errs:
// for now stop on any error
// FIXME offer other behaviors
if err != nil {
return nil, err
}
}
}
// for now stop on any error
// FIXME offer other behaviors
if err != nil {
return nil, err
}
// merge just concatenated all the hits
// now lets clean it up