# Elastic Search with Mahout

**URL:** <https://discuss.elastic.co/t/elastic-search-with-mahout/4459>\
**Category:** Elasticsearch\
**Created:** [May 23, 2011, 1:41pm UTC](https://discuss.elastic.co/t/elastic-search-with-mahout/4459 "2011-05-23T13:41:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam\_2](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sam\_2](https://discuss.elastic.co/u/sam_2)\
**Post date:** [May 23, 2011, 1:41pm UTC](https://discuss.elastic.co/t/elastic-search-with-mahout/4459/1 "2011-05-23T13:41:22Z")

</div>

Hi,

I am facing problem integrating Elastic Search with Mahout because in  
ES am not able to control the format in which the files are indexed.  
For example in Solr or Lucene, following links  
[http://www.lucidimagination.com/blog/2010/03/16/integrating-apache-mahout-with-apache-lucene-and-solr-part-i-of-3/](http://www.lucidimagination.com/blog/2010/03/16/integrating-apache-mahout-with-apache-lucene-and-solr-part-i-of-3/)  
says that you can add term vector and gives a command which would  
create Mahout documents from search indices.

Say if I want to trigger an event, that whenever a record is added to  
Elastic Search engine it also gets added to Mahout, Mahout actually  
doesn't understand the indexed files. Is it possible to index the  
records in ES in another format like csv, json, etc? Since ES has  
emerged from Lucene, I believe there should be a way to do it.

I would really appreciate any information on this topic.

Many Thanks!  
Sambodhi

---

<div class="post-metadata">

**Author:** ![ofavre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ofavre/32/116819_2.png) [@ofavre](https://discuss.elastic.co/u/ofavre)\
**Post date:** [May 23, 2011, 2:17pm UTC](https://discuss.elastic.co/t/elastic-search-with-mahout/4459/2 "2011-05-23T14:17:26Z")

</div>

Aren't rivers what you need?  
I didn't fully get what they are, but I see them as a way to plug another  
source/end to ES.  
If I'm right, you could write a river that would notify Mahout of any new  
documents indexed in ES.

I scanned your page quickly, but I think it is what is done with Solr.

--  
Olivier Favre

[www.yakaz.com](http://www.yakaz.com)

2011/5/23 sam [sambodhi.sagi@gmail.com](mailto:sambodhi.sagi@gmail.com)

> Hi,
> 
> I am facing problem integrating Elastic Search with Mahout because in  
> ES am not able to control the format in which the files are indexed.  
> For example in Solr or Lucene, following links
> 
> [Search Technology & Search Platform | Lucidworks](http://www.lucidimagination.com/blog/2010/03/16/integrating-apache-mahout-with-apache-lucene-and-solr-part-i-of-3/)  
> says that you can add term vector and gives a command which would  
> create Mahout documents from search indices.
> 
> Say if I want to trigger an event, that whenever a record is added to  
> Elastic Search engine it also gets added to Mahout, Mahout actually  
> doesn't understand the indexed files. Is it possible to index the  
> records in ES in another format like csv, json, etc? Since ES has  
> emerged from Lucene, I believe there should be a way to do it.
> 
> I would really appreciate any information on this topic.
> 
> Many Thanks!  
> Sambodhi

---

<div class="post-metadata">

**Author:** ![Berkay\_Mollamustafao](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@Berkay\_Mollamustafao](https://discuss.elastic.co/u/Berkay_Mollamustafao)\
**Post date:** [May 23, 2011, 2:25pm UTC](https://discuss.elastic.co/t/elastic-search-with-mahout/4459/3 "2011-05-23T14:25:14Z")

</div>

Docs are stored as Json in ES already. All you need to do is execute search  
in ES, get the source from the docs as json, and then push the data to  
Mahout.  
Have you created in index in ES and run queries against it?

Regards,  
Berkay Mollamustafaoglu  
mberkay on yahoo, google and skype

On Mon, May 23, 2011 at 10:17 AM, Olivier Favre [olivier@yakaz.com](mailto:olivier@yakaz.com) wrote:

> Aren't rivers what you need?  
> I didn't fully get what they are, but I see them as a way to plug another  
> source/end to ES.  
> If I'm right, you could write a river that would notify Mahout of any new  
> documents indexed in ES.
> 
> I scanned your page quickly, but I think it is what is done with Solr.
> 
> --  
> Olivier Favre
> 
> [www.yakaz.com](http://www.yakaz.com)
> 
> 2011/5/23 sam [sambodhi.sagi@gmail.com](mailto:sambodhi.sagi@gmail.com)
> 
> > Hi,
> > 
> > I am facing problem integrating Elastic Search with Mahout because in  
> > ES am not able to control the format in which the files are indexed.  
> > For example in Solr or Lucene, following links
> > 
> > [Search Technology & Search Platform | Lucidworks](http://www.lucidimagination.com/blog/2010/03/16/integrating-apache-mahout-with-apache-lucene-and-solr-part-i-of-3/)  
> > says that you can add term vector and gives a command which would  
> > create Mahout documents from search indices.
> > 
> > Say if I want to trigger an event, that whenever a record is added to  
> > Elastic Search engine it also gets added to Mahout, Mahout actually  
> > doesn't understand the indexed files. Is it possible to index the  
> > records in ES in another format like csv, json, etc? Since ES has  
> > emerged from Lucene, I believe there should be a way to do it.
> > 
> > I would really appreciate any information on this topic.
> > 
> > Many Thanks!  
> > Sambodhi

---

<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, 4:05am UTC](https://discuss.elastic.co/t/elastic-search-with-mahout/4459/4 "2017-07-06T04:05:33Z")

</div>


