# Thrift Usage

**URL:** <https://discuss.elastic.co/t/thrift-usage/4120>\
**Category:** Elasticsearch\
**Created:** [March 17, 2011, 11:18am UTC](https://discuss.elastic.co/t/thrift-usage/4120 "2011-03-17T11:18:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srrin](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@srrin](https://discuss.elastic.co/u/srrin)\
**Post date:** [March 17, 2011, 11:18am UTC](https://discuss.elastic.co/t/thrift-usage/4120/1 "2011-03-17T11:18:12Z")

</div>

Hi Shay,

I am new to Thrift and found document in ES.  
Anyway I managed to start ES with Thrift configured. But may I know how to query ES with Thrift?  
Can you provide me a sample query that calls ES with Thrift

Thanks  
SRR

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [March 17, 2011, 7:59pm UTC](https://discuss.elastic.co/t/thrift-usage/4120/2 "2011-03-17T19:59:42Z")

</div>

Hi,

I haven't used Thrift myself but I think there is a unit test for this:  
[https://github.com/elasticsearch/elasticsearch/blob/master/plugins/transport/thrift/src/test/java/org/elasticsearch/thrift/test/SimpleThriftTests.java](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/transport/thrift/src/test/java/org/elasticsearch/thrift/test/SimpleThriftTests.java)

[https://github.com/elasticsearch/elasticsearch/blob/master/plugins/transport/thrift/src/test/java/org/elasticsearch/thrift/test/SimpleThriftTests.java](https://github.com/elasticsearch/elasticsearch/blob/master/plugins/transport/thrift/src/test/java/org/elasticsearch/thrift/test/SimpleThriftTests.java)  
Regards,  
Lukas

On Thu, Mar 17, 2011 at 12:18 PM, srrIN [srrranga@gmail.com](mailto:srrranga@gmail.com) wrote:

> Hi Shay,
> 
> I am new to Thrift and found document in ES.  
> Anyway I managed to start ES with Thrift configured. But may I know how to  
> query ES with Thrift?  
> Can you provide me a sample query that calls ES with Thrift
> 
> Thanks  
> SRR
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Thrift-Usage-tp2693035p2693035.html](http://elasticsearch-users.115913.n3.nabble.com/Thrift-Usage-tp2693035p2693035.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![srrin](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@srrin](https://discuss.elastic.co/u/srrin)\
**Post date:** [March 18, 2011, 3:55am UTC](https://discuss.elastic.co/t/thrift-usage/4120/3 "2011-03-18T03:55:54Z")

</div>

Hi,  
Thanks for the link.

Thanks  
SRR

---

<div class="post-metadata">

**Author:** ![Wolf\_2](https://avatars.discourse-cdn.com/v4/letter/w/ac8455/32.png) [@Wolf\_2](https://discuss.elastic.co/u/Wolf_2)\
**Post date:** [March 18, 2011, 8:35am UTC](https://discuss.elastic.co/t/thrift-usage/4120/4 "2011-03-18T08:35:50Z")

</div>

Hi,

I found this old link useful to setup thrift with python.

[http://www.winterebbs.com/?cat=3](http://www.winterebbs.com/?cat=3)

you also need to go to the thrift download site:

[http://thrift.apache.org/download/](http://thrift.apache.org/download/)

I used the svn download

Follow the directions to compile and install the source.

Next run ./bin/plugins -install transport-thrift in the ES root directory

Use the instructions in the old link above to implement a python demo in the  
./plugins/transport-thrift directory.

Regards,

Wolf

On Thu, Mar 17, 2011 at 8:55 PM, srrIN [srrranga@gmail.com](mailto:srrranga@gmail.com) wrote:

> Hi,  
> Thanks for the link.
> 
> Thanks  
> SRR
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Thrift-Usage-tp2693035p2696689.html](http://elasticsearch-users.115913.n3.nabble.com/Thrift-Usage-tp2693035p2696689.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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:09am UTC](https://discuss.elastic.co/t/thrift-usage/4120/5 "2017-07-06T04:09:43Z")

</div>


