use an initial query in search
Merge pull request #1255 from simod/issue-1254

use an initial query in search
Added fixsitename command, refs #498
Added fixsitename call to updateip, fixes #498