hi ...
I am using solr search in my mvc.net application, all the search is working well.
but now i want to post my xml to solr by code(c#), so plz tell me how i post my xml to solr using mvc.net c(#)
hi ...
I am using solr search in my mvc.net application, all the search is working well.
but now i want to post my xml to solr by code(c#), so plz tell me how i post my xml to solr using mvc.net c(#)
You can use System.Net.WebRequest class. Here's a nice article that contains code samples:
http://www.hanselman.com/blog/HTTPPOSTsAndHTTPGETsWithWebClientAndCAndFakingAPostBack.aspx
Have you looked at the SolrNet project: http://code.google.com/p/solrnet/ It provides a client library; that may be overkill for what you need.