示例#1
0
        public void SwapCores()
        {
            var solrCoreAdmin = new SolrCoreAdmin(new SolrConnection(SolrUrl), GetHeaderParser(), GetStatusResponseParser());

            var swapResponseHeader = solrCoreAdmin.Swap(CoreNew, CoreSwap);

            Assert.AreEqual(swapResponseHeader.Status, 0);
        }
示例#2
0
        public void SwapCores()
        {
            var solrCoreAdmin = new SolrCoreAdmin(new SolrConnection(solrUrl), GetHeaderParser(), GetStatusResponseParser());

            var swapResponseHeader = solrCoreAdmin.Swap("core-new", "core-swap");

            Assert.Equal(0, swapResponseHeader.Status);
        }