I need to integrate Elasticsearch to my website. I have installed elasticsearch in localhost XAMPP server. I am checking the static datas using http://localhost:9200
. My data's are in mysql db. So i have installed river-jdbc in Elasticsearch/plugins folder perfectly. Following code is config.json file
{ "type" : "jdbc",
"jdbc" :{
"strategy" : "oneshot",
"driver" : "com.mysql.jdbc.Driver",
"url" : "jdbc:mysql://localhost:9200/dbname",
"user" : "root",
"password" : "",
"sql" : "select * from tablename",
"poll" : "1h",
"scale" : 0,
"autocommit" : false,
"fetchsize" : 100,
"max_rows" : 0,
"max_retries" : 3,
"max_retries_wait" : "10s",
"locale" : "it",
"digesting" : true,
},
}
updated the .json file using following code curl -XPUT http://127.0.0.1:9200/_river/jdbcriver/_meta" -d @config.json.
It was created. Now i have a confusion to show the data's in my website. Here is the issues i am facing
Is the database is connected with the file? how can i pull the data's to my web
In PHP how can i retrieve the data and show in web page?
How can i configure the same in live domain?