| Issue 2879: | Gerrit query using secondary index is capped to 1000 | |
| 4 people starred this issue and may be notified of changes. | Back to list |
************************************************************ ***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW ***** ***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL ***** ***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC. ***** ***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS! ***** ************************************************************ Affected Version: Gerrit 2.9 What steps will reproduce the problem? 1. Set Global capability for query limit to 5000. 2. ssh -p 29418 <Gerrit-URL> gerrit query --format JSON ' status:open branch:dev project:<project-name> ' What is the expected output? What do you see instead? Expected to display over 2000 changes, it looks like there is a hard coded limit to 1000 changes in lucene search. Please provide any additional information below. I am quoting from the source code file at: https://gerrit.googlesource.com/gerrit/+/45661d83d3f4c0aebc42accaa2f6f748ebbb2ae2/gerrit-lucene/src/main/java/com/google/gerrit/lucene/LuceneChangeIndex.java " private class QuerySource implements ChangeDataSource { // TODO(dborowitz): Push limit down from predicate tree. private static final int LIMIT = 1000; "
Sep 2, 2014
Project Member
#1
david.pu...@sonymobile.com
Sep 2, 2014
It's actually limited here: https://gerrit.googlesource.com/gerrit/+/master/gerrit-server/src/main/java/com/google/gerrit/server/index/IndexRewriteImpl.java Line 65: static final int MAX_LIMIT = 1000; This seems to apply to all indexes; not only Lucene.
Summary:
Gerrit query using secondary index is capped to 1000
(was: Gerrit query using lucene is capped to 1000)
Status: Accepted
Sep 8, 2014
(No comment was entered for this change.)
Status:
Submitted
Labels: FixedIn-2.9.1
Sep 11, 2014
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |