# Terrastore - ElasticSearch integration preview

**URL:** <https://discuss.elastic.co/t/terrastore-elasticsearch-integration-preview/2824>\
**Category:** Elasticsearch\
**Created:** [February 20, 2010, 2:13pm UTC](https://discuss.elastic.co/t/terrastore-elasticsearch-integration-preview/2824 "2010-02-20T14:13:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Bossa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergio_bossa/32/3312_2.png) [@Sergio\_Bossa](https://discuss.elastic.co/u/Sergio_Bossa)\
**Post date:** [February 20, 2010, 2:13pm UTC](https://discuss.elastic.co/t/terrastore-elasticsearch-integration-preview/2824/1 "2010-02-20T14:13:41Z")

</div>

Hi guys,

Terrastore and ElasticSearch make up together a complete document  
oriented solution for storing, processing, indexing and searching your  
data.  
A seamless integration was natural, so we created Terrastore-Search!

Terrastore-Search will let you store, retrieve and process Terrastore  
documents as usual, and transparently index every change on  
ElasticSearch.  
You can take a sneak preview by following the steps below:

1a) Check out the latest Terrastore sources:  
[http://code.google.com/p/terrastore/source/checkout?repo=default](http://code.google.com/p/terrastore/source/checkout?repo=default)  
1b) Build a distribution by running: mvn package assembly:assembly

1. Check out and build the latest ElasticSearch sources:  
[http://wiki.github.com/elasticsearch/elasticsearch/getting-started-with-the-source-code](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-with-the-source-code)

3a) Check out Terrastore-Search from sources:  
[http://code.google.com/p/terrastore/source/checkout?repo=search](http://code.google.com/p/terrastore/source/checkout?repo=search)  
3b) Build a distribution by running: mvn package assembly:assembly

1. Install Terrastore master and server(s) (_without_ running any  
node): [http://code.google.com/p/terrastore/wiki/Getting\_Started](http://code.google.com/p/terrastore/wiki/Getting_Started)

5a) Copy all Terrastore-Search libs inside Terrastore server(s) libs directory.  
5b) Copy terrastore-search.xml into Terrastore server(s) home directory.

1. Enable Terrastore-Search by modifying Terrastore events-config.xml  
as follows:  
  
\<util:list id="event-listeners"\>  
  
\</util:list\>  
  
  
  

2. Run Terrastore master and server nodes:  
[http://code.google.com/p/terrastore/wiki/Getting\_Started](http://code.google.com/p/terrastore/wiki/Getting_Started)

3. Try it out!  
8a) Create a bucket into Terrastore:  
$\> curl -v -X PUT -H "Content-Type: application/json"  
[http://localhost:8080/bucket](http://localhost:8080/bucket)  
8b) Put a document into Terrastore:  
$\> curl -v -X PUT -H "Content-Type: application/json" -d "{"key" :  
"value"}" [http://localhost:8080/bucket/test](http://localhost:8080/bucket/test)  
8c) Search through embedded ElasticSearch:  
$\> curl -v -X GET -H "Content-Type: application/json"  
[http://127.0.0.1:9200/search/bucket/\_search?q=key:value](http://127.0.0.1:9200/search/bucket/_search?q=key:value)

Remember this is just a preview: your feedback is greatly appreciated!

Cheers,

Sergio B.

--  
Sergio Bossa  
[http://www.linkedin.com/in/sergiob](http://www.linkedin.com/in/sergiob)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 20, 2010, 3:28pm UTC](https://discuss.elastic.co/t/terrastore-elasticsearch-integration-preview/2824/2 "2010-02-20T15:28:20Z")

</div>

Sergio, great job!. This is just the first step at trying and create a  
complete and seamless integration, but I hope the value of it is evident.  
Many nosql solution would love to "get their search going", and this  
integration just proves that something like this is quite easily achieved  
with elasticsearch. I did my small part in the integration, but as you can  
see in the code:  
[Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/terrastore/source/browse/src/main/java/terrastore/search/ElasticSearchListener.java?repo=search),  
the integration is quite simple which I hope speaks of the ease of use of  
both products.

-shay.banon

On Sat, Feb 20, 2010 at 4:13 PM, Sergio Bossa [sergio.bossa@gmail.com](mailto:sergio.bossa@gmail.com)wrote:

> Hi guys,
> 
> Terrastore and Elasticsearch make up together a complete document  
> oriented solution for storing, processing, indexing and searching your  
> data.  
> A seamless integration was natural, so we created Terrastore-Search!
> 
> Terrastore-Search will let you store, retrieve and process Terrastore  
> documents as usual, and transparently index every change on  
> Elasticsearch.  
> You can take a sneak preview by following the steps below:
> 
> 1a) Check out the latest Terrastore sources:  
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/terrastore/source/checkout?repo=default)  
> 1b) Build a distribution by running: mvn package assembly:assembly
> 
> 1. Check out and build the latest Elasticsearch sources:
> 
> [http://wiki.github.com/elasticsearch/elasticsearch/getting-started-with-the-source-code](http://wiki.github.com/elasticsearch/elasticsearch/getting-started-with-the-source-code)
> 
> 3a) Check out Terrastore-Search from sources:  
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/terrastore/source/checkout?repo=search)  
> 3b) Build a distribution by running: mvn package assembly:assembly
> 
> 1. Install Terrastore master and server(s) (_without_ running any  
> node): [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/terrastore/wiki/Getting_Started)
> 
> 5a) Copy all Terrastore-Search libs inside Terrastore server(s) libs  
> directory.  
> 5b) Copy terrastore-search.xml into Terrastore server(s) home directory.
> 
> 1. Enable Terrastore-Search by modifying Terrastore events-config.xml  
> as follows:  
>   
> \<util:list id="event-listeners"\>  
>   
> \</util:list\>  
>   
>   
>   
> 
> 2. Run Terrastore master and server nodes:  
> [Google Code Archive - Long-term storage for Google Code Project Hosting.](http://code.google.com/p/terrastore/wiki/Getting_Started)
> 
> 3. Try it out!  
> 8a) Create a bucket into Terrastore:  
> $\> curl -v -X PUT -H "Content-Type: application/json"  
> [http://localhost:8080/bucket](http://localhost:8080/bucket)  
> 8b) Put a document into Terrastore:  
> $\> curl -v -X PUT -H "Content-Type: application/json" -d "{"key" :  
> "value"}" [http://localhost:8080/bucket/test](http://localhost:8080/bucket/test)  
> 8c) Search through embedded Elasticsearch:  
> $\> curl -v -X GET -H "Content-Type: application/json"  
> [http://127.0.0.1:9200/search/bucket/\_search?q=key:value](http://127.0.0.1:9200/search/bucket/_search?q=key:value)
> 
> Remember this is just a preview: your feedback is greatly appreciated!
> 
> Cheers,
> 
> Sergio B.
> 
> --  
> Sergio Bossa  
> [http://www.linkedin.com/in/sergiob](http://www.linkedin.com/in/sergiob)

---

<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:25am UTC](https://discuss.elastic.co/t/terrastore-elasticsearch-integration-preview/2824/3 "2017-07-06T04:25:37Z")

</div>

Closed on July 6, 2017, 4:25am UTC


