changed vocabulary navigator object type to TreeMap to get a specific

order into the vocabularies. This is now lexicographic which is not so
much random as a hashed order
pull/1/head
Michael Peter Christen 10 years ago
parent d5c1b07768
commit 8317914ce3

@ -243,7 +243,7 @@ public final class SearchEvent {
this.filetypeNavigator = navcfg.contains("filetype") ? new ConcurrentScoreMap<String>() : null;
this.topicNavigatorCount = navcfg.contains("topics") ? MAX_TOPWORDS : 0;
this.languageNavigator = navcfg.contains("language") ? new ConcurrentScoreMap<String>() : null;
this.vocabularyNavigator = new ConcurrentHashMap<String, ScoreMap<String>>();
this.vocabularyNavigator = new TreeMap<String, ScoreMap<String>>();
this.snippets = new ConcurrentHashMap<String, LinkedHashSet<String>>();
this.secondarySearchSuperviser = (this.query.getQueryGoal().getIncludeHashes().size() > 1) ? new SecondarySearchSuperviser(this) : null; // generate abstracts only for combined searches
if (this.secondarySearchSuperviser != null) this.secondarySearchSuperviser.start();

Loading…
Cancel
Save