public static string GetResultName(string nick, string idxname, IndexArgumentSetup setup, string suffix)
{
if (suffix.Length > 0) {
suffix = "." + suffix;
}
return String.Format(
"{0}/Res.{1}.{2}.qarg={3}{4}.json",
nick,
Path.GetFileName(idxname),
Path.GetFileName(setup.QUERIES),
setup.QARG,
suffix
);
}