}
public void testAddData(CommonsHttpSolrServer solrClient) throws Exception
{
SolrInputDocument doc = new SolrInputDocument();
doc.addField("title", "test1");
doc.addField("url", "http://www.test.com");
doc.addField("text", "this is a test of Solandra \u5639\u563b");
doc.addField("user_id_i", 10);
doc.addField("price", 1000);
solrClient.add(doc);
doc = new SolrInputDocument();
doc.addField("title", "test2");
doc.addField("url", "http://www.test2.com");
doc.addField("text", "this is a test2 of Solandra");
doc.addField("user_id_i", 10);
doc.addField("price", 10000);
solrClient.add(doc);
doc = new SolrInputDocument();
doc.addField("title", "test3");
doc.addField("url", "http://www.test3.com");
doc.addField("text", "this is a test3 of Solandra");
doc.addField("user_id_i", 100);
doc.addField("price", 100000);
solrClient.add(doc);
doc = new SolrInputDocument();
doc.addField("title", "test4");
doc.addField("url", "http://www.test4.com");
doc.addField("text", "this is a test4 of Solandra");
doc.addField("user_id_i", 100);
doc.addField("price", 10);
solrClient.add(doc);
solrClient.commit(true, true);
}