Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4 from stewi2/master

MultiTypeahead should use a SortedCollector instead of SimpleCollector
  • Loading branch information...
commit 0be6234fdabc15db54b733e9c8f02a84f59a785a 2 parents 73d8976 + 8de70be
@jingwei jingwei authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/cleo/search/typeahead/MultiTypeahead.java
View
4 src/main/java/cleo/search/typeahead/MultiTypeahead.java
@@ -33,7 +33,7 @@
import cleo.search.collector.Collector;
import cleo.search.collector.MultiCollector;
import cleo.search.collector.MultiSourceCollector;
-import cleo.search.collector.SimpleCollector;
+import cleo.search.collector.SortedCollector;
import cleo.search.util.Strings;
/**
@@ -88,7 +88,7 @@ public final String getName() {
@Override
public List<E> search(int uid, String[] terms, int maxNumResults, long timeoutMillis) {
- Collector<E> collector = new SimpleCollector<E>(maxNumResults);
+ Collector<E> collector = new SortedCollector<E>(maxNumResults);
collector = search(uid, terms, collector, timeoutMillis);
return collector.elements();
}
Please sign in to comment.
Something went wrong with that request. Please try again.