# Wikipedia River: Index only title

**URL:** <https://discuss.elastic.co/t/wikipedia-river-index-only-title/12532>\
**Category:** Elasticsearch\
**Created:** [June 25, 2013, 12:35am UTC](https://discuss.elastic.co/t/wikipedia-river-index-only-title/12532 "2013-06-25T00:35:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Arkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_arkin/32/2011_2.png) [@Matt\_Arkin](https://discuss.elastic.co/u/Matt_Arkin)\
**Post date:** [June 25, 2013, 12:35am UTC](https://discuss.elastic.co/t/wikipedia-river-index-only-title/12532/1 "2013-06-25T00:35:54Z")

</div>

I'm using the Wikipedia River, is there a way that I can index only the  
title of Wikipedia article?

If I do this can I still get access of the entire article text through  
ElasticSearch using standard /index/type/id?

Thanks so much,

Matt

--  
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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [June 25, 2013, 12:43am UTC](https://discuss.elastic.co/t/wikipedia-river-index-only-title/12532/2 "2013-06-25T00:43:59Z")

</div>

IIRC, the wikipedia river does not provide a mapping at start up, so you  
can supply your own mapping with only one field and dynamic set to false.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Ivan

On Mon, Jun 24, 2013 at 5:35 PM, Matt Arkin [arkin@endlessm.com](mailto:arkin@endlessm.com) wrote:

> I'm using the Wikipedia River, is there a way that I can index only the  
> title of Wikipedia article?
> 
> If I do this can I still get access of the entire article text through  
> Elasticsearch using standard /index/type/id?
> 
> Thanks so much,
> 
> Matt
> 
> --  
> 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:** ![Matt\_Arkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_arkin/32/2011_2.png) [@Matt\_Arkin](https://discuss.elastic.co/u/Matt_Arkin)\
**Post date:** [June 25, 2013, 12:50am UTC](https://discuss.elastic.co/t/wikipedia-river-index-only-title/12532/3 "2013-06-25T00:50:05Z")

</div>

So probably a very stupid question (its my 2nd day in Elastic Search), can  
I supply a mapping when I make this curl request, or do I need to make the  
river first, create a mapping then do the below call?

curl -XPUT localhost:9200/ptwikiss/page/\_meta -d '  
{  
"type" : "wikipedia",  
"wikipedia" : {  
"url" : "  
[http://dumps.wikimedia.org/ptwiki/20130622/ptwiki-20130622-pages-articles.xml.bz2](http://dumps.wikimedia.org/ptwiki/20130622/ptwiki-20130622-pages-articles.xml.bz2)  
"  
}  
}  
'

Thanks,  
Matt

On Monday, June 24, 2013 5:43:59 PM UTC-7, Ivan Brusic wrote:

> IIRC, the wikipedia river does not provide a mapping at start up, so you  
> can supply your own mapping with only one field and dynamic set to false.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/mapping/object-type/)
> 
> --  
> Ivan
> 
> On Mon, Jun 24, 2013 at 5:35 PM, Matt Arkin \<[ar...@endlessm.com](mailto:ar...@endlessm.com)\<javascript:\>
> 
> > wrote:
> 
> > I'm using the Wikipedia River, is there a way that I can index only the  
> > title of Wikipedia article?
> > 
> > If I do this can I still get access of the entire article text through  
> > Elasticsearch using standard /index/type/id?
> > 
> > Thanks so much,
> > 
> > Matt
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > 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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [June 25, 2013, 1:24am UTC](https://discuss.elastic.co/t/wikipedia-river-index-only-title/12532/4 "2013-06-25T01:24:39Z")

</div>

Create the index with the correct mapping first, then create the river  
using the same index name. The river will attempt to create the index, so  
make sure it exists first.

I have never used the Wikipedia river, but that is what I can gather by  
looking at the source:

> <https://github.com/elastic/elasticsearch-river-wikipedia/blob/master/src/main/java/org/elasticsearch/river/wikipedia/WikipediaRiver.java#L107>

On Mon, Jun 24, 2013 at 5:50 PM, Matt Arkin [arkin@endlessm.com](mailto:arkin@endlessm.com) wrote:

> So probably a very stupid question (its my 2nd day in Elastic Search), can  
> I supply a mapping when I make this curl request, or do I need to make the  
> river first, create a mapping then do the below call?
> 
> curl -XPUT localhost:9200/ptwikiss/page/\_**meta -d '  
> {  
> "type" : "wikipedia",  
> "wikipedia" : {  
> "url" : "[http://dumps.wikimedia.org/\*\*ptwiki/20130622/ptwiki-](http://dumps.wikimedia.org/**ptwiki/20130622/ptwiki-)**  
> 20130622-pages-articles.xml.\*\*bz2[http://dumps.wikimedia.org/ptwiki/20130622/ptwiki-20130622-pages-articles.xml.bz2](http://dumps.wikimedia.org/ptwiki/20130622/ptwiki-20130622-pages-articles.xml.bz2)  
> "  
> }  
> }  
> '
> 
> Thanks,  
> Matt
> 
> On Monday, June 24, 2013 5:43:59 PM UTC-7, Ivan Brusic wrote:
> 
> > IIRC, the wikipedia river does not provide a mapping at start up, so you  
> > can supply your own mapping with only one field and dynamic set to false.
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/ **guide/reference/mapping/** object-type/)[http://www.elasticsearch.org/guide/reference/mapping/object-type/](http://www.elasticsearch.org/guide/reference/mapping/object-type/)
> > 
> > --  
> > Ivan
> > 
> > On Mon, Jun 24, 2013 at 5:35 PM, Matt Arkin [ar...@endlessm.com](mailto:ar...@endlessm.com) wrote:
> > 
> > > I'm using the Wikipedia River, is there a way that I can index only the  
> > > title of Wikipedia article?
> > > 
> > > If I do this can I still get access of the entire article text through  
> > > Elasticsearch using standard /index/type/id?
> > > 
> > > Thanks so much,
> > > 
> > > Matt
> > > 
> > > --  
> > > 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 elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[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).

--  
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:29am UTC](https://discuss.elastic.co/t/wikipedia-river-index-only-title/12532/5 "2017-07-06T02:29:39Z")

</div>


