elasticsearch - How do I insert data into solr through my application which is in c++ -


i want insert data solr through application, using elasticsearch store data, insert data in elasticsearch using following request incloding data in index "16-03-2016-sslindex" :

"post http://192.168.0.164:9200/_bulk http/1.1 host: 192.168.0.164:9200 user-agent: mozilla/4.0 (compatible; msie 6.0; windows nt 5.0;) pragma: no-cache content-type: application/x-www-form-urlencoded content-length: 196"  "{"index":{"_index": "16-03-2016-sslindex","_type":"session"}} {"uniqueid":"2016-3-16-10-45-19-1-1","time":"2016-3-16t10:45:19","srcip":"192.168.0.180","srcport":1123,"dstip":"74.125.68.113","dstport":443,"interfaceid":"1","locationid":2,"size":0,"snortname":"p_snort.log.123","dummy1":"","dummy2":0}" 

i want use solr in same ways. should request structure insert valye in solr.

solr support http protocol insertion/updation/search.....
have hit solr (again socket programming.)

in java

public void pumpdata() { // hit elastic cloud // hit solr } 

(just info : solrj java client access solr. make task little easy.)

same have in c++. c++ has "solrcpp" solr client - solrcpp.
apache site mentioning same - solr clients


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -