对于javascript,elasticsearch客户端(https://github.com/elastic/elasticsearch-js)是否支持为couchdb创建索引。使用curl,我们可以在创建索引时提及couchdb类型,如下所示:
curl -XPUT "http://localhost:9200/_river/user_idx/_meta" -d "{
"type": "couchdb",
"couchdb": {
"host": "localhost",
"port": 5984,
"db": "users",
"filter": null
},
"index": {
"index": "user_idx",
"type": "users",
"bulk_size": "100",
"bulk_timeout": "10ms"
}
}"
但是对于client.indices.create或client.index,我找不到任何设置couchdb for index的选项。对此有所帮助。