commit | e96a2367b4aba34673f19452db3b991a05ad4fd0 | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Mon Jul 19 10:37:41 2010 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Mon Jul 19 10:39:22 2010 -0700 |
tree | fbb47760b24a9ef56b20bbc29aefab884862886b | |
parent | 51e058f626c4636e929916c1fb198d6e3e0e2d1d [diff] |
Always use the smallest limit: in a query If there are multiple limit operators in the same AND node, pick the one with the smaller value as the rewritten result. This way if a user puts "limit:5" in a search query we only show them 5 results, even if their page size was bigger. This however may break pagination in the web UI because we don't detect the limit as the page size. Change-Id: Id6e7494d7753f72ddaa9a5cfa4fda694bd540001 Signed-off-by: Shawn O. Pearce <sop@google.com>