Create a Twitter River with custom sittings

All,

I would like to create a river with an index with more than the default 5
shards and 1 replica. The following command creates a _river index with 7
shards and 2 replicas. Can someone point me in the right direction with
this?

'''curl -XPUT '172.16.2.29:9200/_river/tweets/_meta' -d '
{
"type" : "twitter",
"twitter" : {
"user" : "username",
"password" : "password",
"filter" : {
"locations" : "bleh"
}
},
"index": {
"index": "tweets",
"type": "status",
"number_of_shards" : 7,
"number_of_replicas" : 2
}
}' &
'''

I think that you need to create first your index with your settings and then create the river. The river will send docs in your customized index.

HTH

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 22 avr. 2012 à 23:05, Adam Estrada estrada.adam@gmail.com a écrit :

All,

I would like to create a river with an index with more than the default 5 shards and 1 replica. The following command creates a _river index with 7 shards and 2 replicas. Can someone point me in the right direction with this?

'''curl -XPUT '172.16.2.29:9200/_river/tweets/_meta' -d '
{
"type" : "twitter",
"twitter" : {
"user" : "username",
"password" : "password",
"filter" : {
"locations" : "bleh"
}
},
"index": {
"index": "tweets",
"type": "status",
"number_of_shards" : 7,
"number_of_replicas" : 2
}
}' &
'''

Yea, first create the index that the twitter river will index into, and
then create the river.

On Mon, Apr 23, 2012 at 12:29 AM, David Pilato david@pilato.fr wrote:

I think that you need to create first your index with your settings and
then create the river. The river will send docs in your customized index.

HTH

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 22 avr. 2012 à 23:05, Adam Estrada estrada.adam@gmail.com a écrit :

All,

I would like to create a river with an index with more than the default 5
shards and 1 replica. The following command creates a _river index with 7
shards and 2 replicas. Can someone point me in the right direction with
this?

'''curl -XPUT '172.16.2.29:9200/_river/tweets/_meta' -d '
{
"type" : "twitter",
"twitter" : {
"user" : "username",
"password" : "password",
"filter" : {
"locations" : "bleh"
}
},
"index": {
"index": "tweets",
"type": "status",
"number_of_shards" : 7,
"number_of_replicas" : 2
}
}' &
'''