According to the documentation of the method limit
in MongoDB, a limit of 0 is interpreted as infinity. This is different from what we're used to, when you compare it to implementations for Solr or DBI, where limit = 0 actually returns no results.
Fix this in Catmandu::Store::MongoDB::Bag#search? i.e. delete last hit manually before returning?
According to the documentation of the method limit in MongoDB, a limit of
0
is interpreted as infinity. This is different from what we're used to, when you compare it to implementations for Solr or DBI, where limit = 0 actually returns no results.Fix this in
Catmandu::Store::MongoDB::Bag#search
? i.e. delete last hit manually before returning?