commit | 683ccdf97bd8b3ed30b7014f2df17227cff92561 | [log] [tgz] |
---|---|---|
author | Soroosh Mariooryad <soroosh@google.com> | Thu May 25 14:15:00 2017 -0700 |
committer | Soroosh Mariooryad <soroosh@google.com> | Fri May 26 09:28:06 2017 -0700 |
tree | bf031050e8ee8e5d7cf8edd8072de5a75c84ed66 | |
parent | 21aab578c999e3f76dbd0dc113a3d8404c4c628a [diff] |
Move static search ranking from DatabaseResultLoader to Search Adapter. This will avoid unnecessary static ranking if smart ranking is used. Since loader does not need to provided sorted collection of results, the loading data type has changed from List<> to Set<>. This will also faster lookup in the Adapter. Fixes: 38447799 Test: make RunSettingsRoboTests Change-Id: I448b29bd4e8700c8ec4b5766cbeab4b3087ae39a