How can I set index_settings for Elasticsearch in elasticsearch-jdbc-river? -
I am trying to configure index settings using elasticsearch-jdbc-river.
So far what do I do:
curl -XPUT localhost: 9200 / _river / my_river / _meta? Beautiful = true - data @ index.json And this is my Jason file:
{"type": "jdbc", "jdbc": "," "poll": "5s", "scale": 0, "AutoCommit": false, "fetchis": 10, "max_oroz": 0, "max_taries": 3, "max_reires_wight" : "Root", "password": "root", "sql": "10s", "driver": "com.mysql.jdbc.Driver", "url" ":", "" "": "root", "password" OFFERS "," index ":" jdbc: mysql: // mysql-server: 3306 / products_fr "" index ":", "" type ":" offer "," bulk_size ": 30," max_blank_request ": 100, "Index_settings": {"number_of_shards": 10, "number_off_replays": 1, "analysis": {"" " Analyst ":" custom "," tokenizer ":" standard "," filter ": [" lowercase "," mysnow "]}," search analytics ": {" type ":" custom "," tokenizer ":" Standard "," filter ": [" standard "," lowercase "," my SN {"MySnowball": {"mySnowball": {"type": "snowball", "language": "French"}} }, "Similarity": {"index": {"type": "wrong", "accept": false}}} "" "" "" "", "search ": {" Type ":" BM25 "}}," typemapping ": tap," version "this command works but it does not create an index It is. I have tried to create it without first indexing_settings and restart the elasticsearch server, it seems that to make it right.
Does anyone help me understand what happened wrong?
I have solved my problem by creating my problem before setting and then adding the river.
will be ignored at this point because the index has already been created. Then I restarted Elixir Schirchet.
PS: Not tested elastic search with 2.x +
Comments
Post a Comment