Answer the question
In order to leave comments, you need to log in
CouchDB, Elasticsearch - Problem creating index
Hey Habr! Help with Elasticsearch.
I am using CouchDB, Elasticsearch and the elasticsearch-river-couchdb plugin to communicate between them. There are objects in the database with a name
field of type object :
{
"name": {
"first": "Ivan",
"last": "Ivanov"
}
}
{
"name":"Ivan Ivanov"
}
-XPUT 'site.ru:9200/_river/dev_idx/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "127.0.0.1",
"port" : 5984,
"user" : "User",
"password" : "Test",
"db" : "dev",
"filter" : null
}
},
"index" : {
"index" : "dev",
"type" : "dev",
"bulk_size" : "100",
"bulk_timeout" : "10ms"
}
}'
-XPUT 'site.ru:9200/_river/dev_third/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "127.0.0.1",
"port" : 5984,
"user" : "User",
"password" : "Test",
"db" : "dev",
"filter" : null,
"ignore_attachments":true
}
},
"index" : {
"index" : "dev_third",
"type" : "dev_third",
"bulk_size" : "100",
"bulk_timeout" : "10ms"
}
}'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question