optimization of queries used by HolisSearch module to select maximum weights and avoid duplicates
underscores replaced with blanks in returned words
duplicate removal and maximum weight update