Rank results that match the prefix of the first word higher

Differentiates the results that match the first word in
the title from matches farther into the title.

Change-Id: I69f9804a51d1c2b0e476b0f082d634b3a598997c
Fixes: 34975472
Test: make RunSettingsRoboTests
This commit is contained in:
Matthew Fritze
2017-02-13 17:45:46 -08:00
parent c65e3a19a1
commit b7b286cb89
5 changed files with 147 additions and 35 deletions

View File

@@ -30,7 +30,7 @@ public class SearchResult implements Comparable<SearchResult> {
* Defines the max rank for a search result to be considered as ranked. Results with ranks
* higher than this have no guarantee for sorting order.
*/
public static final int MAX_RANK = 9;
public static final int MAX_RANK = 10;
/**
* The title of the result and main text displayed.