git.iko.soy/typeable/bloodhound
on master help sign in
Fix docs specifying an incorrect terminating condition
77d026eMHova
src/Database/Bloodhound/Client.hs+2−3
@@ -680,9 +680,8 @@ scroll' (Just sid) = do
680 Right SearchResult {..} -> return (hits searchHits, scrollId)
680 Right SearchResult {..} -> return (hits searchHits, scrollId)
681 Left _ -> return ([], Nothing)
681 Left _ -> return ([], Nothing)
682
682
683−-- | Use the given scroll to fetch the next page of documents. If
683+-- | Use the given scroll to fetch the next page of documents. If there are no
684−-- there are still further pages, there will be a value in the
684+-- further pages, 'SearchResult.searchHits.hits' will be '[]'.
685−-- 'scrollId' field of the 'SearchResult'
686advanceScroll
685advanceScroll
687 :: ( FromJSON a
686 :: ( FromJSON a
688 , MonadBH m
687 , MonadBH m