# How to change the default index settings for Wikipedia river?

**URL:** <https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046>\
**Category:** Elasticsearch\
**Created:** [May 21, 2013, 7:14am UTC](https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046 "2013-05-21T07:14:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingang\_Wang](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jingang\_Wang](https://discuss.elastic.co/u/Jingang_Wang)\
**Post date:** [May 21, 2013, 7:14am UTC](https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046/1 "2013-05-21T07:14:43Z")

</div>

Hi there,

I want to index all English wikipedia pages in my ES, therefore I think  
it's a convenient way to build the index from wikipedia river.

But I‘m a little confused on how to change the default settings when index  
the wikipedia river.

In my understanding, the RESTful api would like as follows:

curl -XPUT localhost:9200/\_river/my\_river/\_meta -d '

{  
"type" : "wikipedia",  
"wikipedia" : {  
"url" : "[http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2](http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2)"  
}  
}  
"index" : {  
"name" : "wikipedia",  
"type" : "page",  
"bulk\_size" : 100,  
"settings" :{  
"index.number\_of\_shards": "10",  
"index.number\_of\_replicas": "0"  
}   
}  
}’

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 21, 2013, 7:21am UTC](https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046/2 "2013-05-21T07:21:42Z")

</div>

I would create index first with settings and then create the river.

## HTH

David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 mai 2013 à 09:14, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) a écrit :

Hi there,

I want to index all English wikipedia pages in my ES, therefore I think it's a convenient way to build the index from wikipedia river.

But I‘m a little confused on how to change the default settings when index the wikipedia river.

In my understanding, the RESTful api would like as follows:

curl -XPUT localhost:9200/\_river/my\_river/\_meta -d '  
{  
"type" : "wikipedia",  
"wikipedia" : {  
"url" : "[http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2](http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2)"  
}  
}  
"index" : {  
"name" : "wikipedia",  
"type" : "page",  
"bulk\_size" : 100,  
"settings" :{  
"index.number\_of\_shards": "10",  
"index.number\_of\_replicas": "0"  
}   
}  
}’

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Jingang\_Wang](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jingang\_Wang](https://discuss.elastic.co/u/Jingang_Wang)\
**Post date:** [May 21, 2013, 7:28am UTC](https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046/3 "2013-05-21T07:28:03Z")

</div>

Hi David,

Thanks for your response.  
Could you give more details？  
Do you mean create the \_river index first?

Thanks.

On Tue, May 21, 2013 at 3:21 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I would create index first with settings and then create the river.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 21 mai 2013 à 09:14, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) a écrit :
> 
> Hi there,
> 
> I want to index all English wikipedia pages in my ES, therefore I think  
> it's a convenient way to build the index from wikipedia river.
> 
> But I‘m a little confused on how to change the default settings when index  
> the wikipedia river.
> 
> In my understanding, the RESTful api would like as follows:
> 
> curl -XPUT localhost:9200/\_river/my\_river/\_meta -d '
> 
> {  
> "type" : "wikipedia",  
> "wikipedia" : {  
> "url" : "[http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2](http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2)"  
> }  
> }  
> "index" : {  
> "name" : "wikipedia",  
> "type" : "page",  
> "bulk\_size" : 100,  
> "settings" :{  
> "index.number\_of\_shards": "10",  
> "index.number\_of\_replicas": "0"  
> }   
> }  
> }’
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Wang Jingang(王金刚)  
Ph.D. Candidate at  
Lab of High Volume Language Information Processing & Cloud Computing  
School of Computer Science  
Beijing Institute of Technology  
Beijing 100081  
P.R China

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 21, 2013, 7:31am UTC](https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046/4 "2013-05-21T07:31:56Z")

</div>

I said: create first your index using Create Index API: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/)

You can define here your number of shards and replica.

THEN (=after index creation), create your river.  
curl -XPUT localhost:9200/\_river/my\_river/\_meta -d '{  
"type" : "wikipedia",  
"wikipedia" : {  
"url" : "[http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2](http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2)"

```
}

```

}'

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 21 mai 2013 à 09:28, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) a écrit :

Hi David,

Thanks for your response.  
Could you give more details？  
Do you mean create the \_river index first?

Thanks.

On Tue, May 21, 2013 at 3:21 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I would create index first with settings and then create the river.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 21 mai 2013 à 09:14, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) a écrit :
> 
> Hi there,
> 
> I want to index all English wikipedia pages in my ES, therefore I think it's a convenient way to build the index from wikipedia river.
> 
> But I‘m a little confused on how to change the default settings when index the wikipedia river.
> 
> In my understanding, the RESTful api would like as follows:
> 
> curl -XPUT localhost:9200/\_river/my\_river/\_meta -d '  
> {  
> "type" : "wikipedia",  
> "wikipedia" : {  
> "url" : "[http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2](http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2)"
> 
> ```
> }
> 
> ```
> 
> }  
> "index" : {
> 
> ```
> "name" : "wikipedia",
> 
> "type" : "page",
> 
> "bulk_size" : 100,
> 
> "settings" :{
> 
> "index.number_of_shards": "10",        
> 
> "index.number_of_replicas": "0"
> }		
> 
> ```
> 
> }  
> }’
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Wang Jingang(王金刚)  
Ph.D. Candidate at  
Lab of High Volume Language Information Processing & Cloud Computing  
School of Computer Science  
Beijing Institute of Technology  
Beijing 100081  
P.R China

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Jingang\_Wang](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jingang\_Wang](https://discuss.elastic.co/u/Jingang_Wang)\
**Post date:** [May 22, 2013, 2:52am UTC](https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046/5 "2013-05-22T02:52:14Z")

</div>

Thanks so much, David.

I have resolved this problem according to your advice.

On Tue, May 21, 2013 at 3:31 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> I said: create first your index using Create Index API:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/)
> 
> You can define here your number of shards and replica.
> 
> THEN (=after index creation), create your river.
> 
> curl -XPUT localhost:9200/\_river/my\_river/\_meta -d '{
> 
> ```
> "type" : "wikipedia",
> "wikipedia" : {
> "url" : "http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2"
> }
> 
> ```
> 
> }'
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 21 mai 2013 à 09:28, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) a écrit :
> 
> Hi David,
> 
> Thanks for your response.  
> Could you give more details？  
> Do you mean create the \_river index first?
> 
> Thanks.
> 
> On Tue, May 21, 2013 at 3:21 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > I would create index first with settings and then create the river.
> > 
> > ## HTH
> > 
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 21 mai 2013 à 09:14, Jingang Wang [bitwjg@gmail.com](mailto:bitwjg@gmail.com) a écrit :
> > 
> > Hi there,
> > 
> > I want to index all English wikipedia pages in my ES, therefore I think  
> > it's a convenient way to build the index from wikipedia river.
> > 
> > But I‘m a little confused on how to change the default settings when  
> > index the wikipedia river.
> > 
> > In my understanding, the RESTful api would like as follows:
> > 
> > curl -XPUT localhost:9200/\_river/my\_river/\_meta -d '
> > 
> > {  
> > "type" : "wikipedia",
> > 
> > ```
> > "wikipedia" : {
> > "url" : "http://dumps.wikimedia.org/enwiki/20121201/enwiki-20121201-pages-articles-multistream.xml.bz2"
> > }
> > 
> > ```
> > 
> > }  
> > "index" : {  
> > "name" : "wikipedia",  
> > "type" : "page",  
> > "bulk\_size" : 100,  
> > "settings" :{  
> > "index.number\_of\_shards": "10",  
> > "index.number\_of\_replicas": "0"  
> > }   
> > }
> > 
> > }’
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US)  
> > .  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Wang Jingang(王金刚)  
> Ph.D. Candidate at  
> Lab of High Volume Language Information Processing & Cloud Computing  
> School of Computer Science  
> Beijing Institute of Technology  
> Beijing 100081  
> P.R China
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/aO2OO6KZQPk/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Wang Jingang(王金刚)  
Ph.D. Candidate at  
Lab of High Volume Language Information Processing & Cloud Computing  
School of Computer Science  
Beijing Institute of Technology  
Beijing 100081  
P.R China

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:35am UTC](https://discuss.elastic.co/t/how-to-change-the-default-index-settings-for-wikipedia-river/12046/6 "2017-07-06T02:35:28Z")

</div>


