/// <summary> /// Merge indexes using their path to identify them. /// Requires Solr 1.4+ /// </summary> /// <param name="destinationCore"></param> /// <param name="indexDir"></param> /// <param name="indexDirs"></param> public MergeCommand(string destinationCore, IndexDir indexDir, params IndexDir[] indexDirs) { AddParameter("core", destinationCore); AddParameter("action", "mergeindexes"); foreach (var d in new[] { indexDir }.Concat(indexDirs)) { AddParameter("indexDir", d.Dir); } }
/// <summary> /// Merge indexes using their path to identify them. /// Requires Solr 1.4+ /// </summary> /// <param name="destinationCore"></param> /// <param name="indexDir"></param> /// <param name="indexDirs"></param> public MergeCommand(string destinationCore, IndexDir indexDir, params IndexDir[] indexDirs) { AddParameter("core", destinationCore); AddParameter("action", "mergeindexes"); foreach (var d in new[] {indexDir}.Concat(indexDirs)) AddParameter("indexDir", d.Dir); }