diff --git a/core/src/main/java/hudson/model/Hudson.java b/core/src/main/java/hudson/model/Hudson.java index 6e3cbae44c..a7b0bff409 100644 --- a/core/src/main/java/hudson/model/Hudson.java +++ b/core/src/main/java/hudson/model/Hudson.java @@ -700,6 +700,10 @@ public final class Hudson extends View implements ItemGroup, Node protected Computer get(String key) { return getComputer(key); } protected Collection all() { return computers.values(); } }) + .add(new CollectionSearchIndex() {// for users + protected User get(String key) { return getUser(key); } + protected Collection all() { return Collections.emptySet(); } // TODO + }) .add(new CollectionSearchIndex() {// for views protected View get(String key) { return getView(key); } protected Collection all() { return views; }