Skip to content

Commit

Permalink
Settings search - highlight word matches in description for results f…
Browse files Browse the repository at this point in the history
…rom bing

(still not using it to filter settings locally)
  • Loading branch information
roblourens committed Jan 25, 2018
1 parent 987073d commit c00aeba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class RemoteSearchProvider implements ISearchProvider {
scoredResults[getSettingKey(setting.key, 'core')] || // core setting
scoredResults[getSettingKey(setting.key)]; // core setting from original prod endpoint
if (remoteSetting && remoteSetting.score >= minScore) {
const settingMatches = new SettingMatches(this.options.filter, setting, false, false, (filter, setting) => preferencesModel.findValueMatches(filter, setting)).matches;
const settingMatches = new SettingMatches(this.options.filter, setting, false, true, (filter, setting) => preferencesModel.findValueMatches(filter, setting)).matches;
return { matches: settingMatches, score: remoteSetting.score };
}

Expand Down

0 comments on commit c00aeba

Please sign in to comment.