0
0
Fork 0

fix advance logic to not skip over result

This commit is contained in:
Marty Schoch 2015-01-22 09:56:40 -05:00
parent 5a09ceeac8
commit 0ed47f5343
1 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,11 @@ func (s *PhraseSearcher) Advance(ID string) (*search.DocumentMatch, error) {
return nil, err
}
}
s.mustSearcher.Advance(ID)
var err error
s.currMust, err = s.mustSearcher.Advance(ID)
if err != nil {
return nil, err
}
return s.Next()
}