diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java index 5c070785d..c97e3fdd6 100644 --- a/source/net/yacy/search/schema/CollectionConfiguration.java +++ b/source/net/yacy/search/schema/CollectionConfiguration.java @@ -139,7 +139,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri } public Ranking getRanking(final int idx) { - return this.rankings.get(idx); + return this.rankings.get(idx % this.rankings.size()); // simply prevent out of bound exeption (& callers don't check for null) } public Ranking getRanking(final String name) {