Permalink
Browse files

Merge pull request #4 from stewi2/master

MultiTypeahead should use a SortedCollector instead of SimpleCollector
  • Loading branch information...
2 parents 73d8976 + 8de70be commit 0be6234fdabc15db54b733e9c8f02a84f59a785a @jingwei jingwei committed May 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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();
}

0 comments on commit 0be6234

Please sign in to comment.