# Alternative to REST 'filter\_path' option in TransportClient

**URL:** <https://discuss.elastic.co/t/alternative-to-rest-filter-path-option-in-transportclient/93943>\
**Category:** Elasticsearch\
**Created:** [July 20, 2017, 1:03pm UTC](https://discuss.elastic.co/t/alternative-to-rest-filter-path-option-in-transportclient/93943 "2017-07-20T13:03:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josca](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@Josca](https://discuss.elastic.co/u/Josca)\
**Post date:** [July 20, 2017, 1:03pm UTC](https://discuss.elastic.co/t/alternative-to-rest-filter-path-option-in-transportclient/93943/1 "2017-07-20T13:03:38Z")

</div>

Hi,

I need to search in huge amount of indexed documents and get relevant documents names into client app. I suppose result will have about milions of documents. I need result to contain docs names only, not all content. I did it using filter\_path feature via REST api. Is it possible implement it using Java TransportClient? I found no alternative to REST filter\_path option when reading Java TransportClient documenation.

Thanks for any advice.

---

<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:** [July 20, 2017, 1:26pm UTC](https://discuss.elastic.co/t/alternative-to-rest-filter-path-option-in-transportclient/93943/2 "2017-07-20T13:26:36Z")

</div>

No it's not.  
But if you use the Rest client instead that is possible

---

<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:** [August 17, 2017, 1:26pm UTC](https://discuss.elastic.co/t/alternative-to-rest-filter-path-option-in-transportclient/93943/3 "2017-08-17T13:26:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
