예제 #1
0
        //[TestMethod]
        public void TestLoad()
        {
            var solr = SimpleConnector <Product> .Create(@"http://localhost.:8983/solr/", "collection1");

            var results = solr.Query("*:*");
            //Assert.IsNotNull(results);
        }
예제 #2
0
        public void TestSave()
        {
            var solr = SimpleConnector <Product> .Create(@"http://localhost.:8983/solr/", "collection1");

            solr.Save(new Product {
                id = "100", title = new string[] { "abcd" }
            });
        }