public void TestClientTimeout() { var client = new SolrClient <SearchDocument>(SolrConnectionString); client.Timeout = 1000; var resp = client.Search("test"); }
public void TestPostDocument() { var client = new SolrClient(SolrConnectionString); var json = "{'id':'1','title':'some data'}"; client.Post(json); var resp = client.Search("\"some data\""); if (resp.Results.Any()) { var title = resp.Results.First().title; } }