private void QueryMatch(Dictionary <string, SearchEntry> entries, string query, string match, int relevance = 0) { var sw = Engine.FindSwitch(match); if (sw != null) { if (!entries.ContainsKey(match)) { var entry = new SearchEntry { Item = sw }; entries.Add(match, entry); entry.AddRelevance(relevance); } else { entries[match].AddRelevance(10); } } }