From 492dbcbc5171824f5f00193abff178b1b8f22d03 Mon Sep 17 00:00:00 2001 From: shale Date: Fri, 17 Jul 2015 09:33:07 -0700 Subject: [PATCH] [Search] Comments and keypress Changed the controller for the search input to respond on keypress rather than keyup. Added comments better explaining searchResult objects to the search aggregator. --- platform/features/search/res/templates/search.html | 2 +- platform/features/search/src/SearchAggregator.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/features/search/res/templates/search.html b/platform/features/search/res/templates/search.html index d213422787..0e8a6eb320 100644 --- a/platform/features/search/res/templates/search.html +++ b/platform/features/search/res/templates/search.html @@ -29,7 +29,7 @@ diff --git a/platform/features/search/src/SearchAggregator.js b/platform/features/search/src/SearchAggregator.js index 5a2e08f803..eba8c04acf 100644 --- a/platform/features/search/src/SearchAggregator.js +++ b/platform/features/search/src/SearchAggregator.js @@ -85,6 +85,11 @@ define( return results; } + // Recieves results in the format of a serachResult object. It + // has the members id, object, and score. It has a function + // next() which returns the next highest score search result + // for that search. + // Calls the searches of each of the providers, then // merges the results lists so that there are not redundant // results