php - How to use Elastic Search on top of a pre-existing SQL Database? -


i've been reading through lot of documentation how implement elastic search on website javascript or php.

very introduction es.

very complete documentation here , here.

a whole crud.

elastic search php: here, here, , here.

so reason why i'm giving urls understand how use 1 or many of great documentations when having pre-existing sql db.

i'm missing point somewhere: said elasticsearch create own indexes , db mongodb, don't understand how can use (gigantic) database using sql? let have mysql db, , use elasticsearch make research faster , propose user pre-made queries, how do that? how es works over/along mysql? how transfer gigantic set of datas (over 8gb) es db in order efficient @ beginning?

many

i using jdbc-river w/ mysql. fast. can configure them continually poll data, or use one-time (one-shot strategy) imports.

e.g.

curl -xput http://es-server:9200/_river/my_river/_meta -d ' {     "type" : "jdbc",     "jdbc" : {         "strategy" : "simple",         "poll" : "5s",         "scale" : 0,         "autocommit" : false,         "fetchsize" : 10,         "max_rows" : 0,         "max_retries" : 3,         "max_retries_wait" : "10s",         "driver" : "com.mysql.jdbc.driver",         "url" : "jdbc:mysql://mysql-server:3306/mydb",         "user" : "root",         "password" : "password*",         "sql" : "select c.id, c.brandcode, c.companycode category c"     },     "index" : {         "index" : "mainindex",         "type" : "category",         "bulk_size" : 30,         "max_bulk_requests" : 100,         "index_settings" : null,         "type_mapping" : null,         "versioning" : false,         "acknowledge" : false     } }' 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -