# How to get term vectors of all documents for a given type!

**URL:** <https://discuss.elastic.co/t/how-to-get-term-vectors-of-all-documents-for-a-given-type/20570>\
**Category:** Elasticsearch\
**Created:** [November 4, 2014, 10:34pm UTC](https://discuss.elastic.co/t/how-to-get-term-vectors-of-all-documents-for-a-given-type/20570 "2014-11-04T22:34:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evans](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@Evans](https://discuss.elastic.co/u/Evans)\
**Post date:** [November 4, 2014, 10:34pm UTC](https://discuss.elastic.co/t/how-to-get-term-vectors-of-all-documents-for-a-given-type/20570/1 "2014-11-04T22:34:20Z")

</div>

Hi all,

Is there a way to retrieve term vectors of all documents for a given type  
using Elasticsearch Java API.

Thanks,

Evans

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/114eecdd-3fcb-43f4-bced-32f81080aaa3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/114eecdd-3fcb-43f4-bced-32f81080aaa3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 5, 2014, 8:49am UTC](https://discuss.elastic.co/t/how-to-get-term-vectors-of-all-documents-for-a-given-type/20570/2 "2014-11-05T08:49:29Z")

</div>

In order to do this, you would need to make a SCAN request in order to get  
all documents from a given type, and for each page to build a multi  
termvectors request to get term vectors.

> **[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.

On Tue, Nov 4, 2014 at 11:34 PM, James Parker [evans.notcker@gmail.com](mailto:evans.notcker@gmail.com)  
wrote:

> Hi all,
> 
> Is there a way to retrieve term vectors of all documents for a given type  
> using Elasticsearch Java API.
> 
> Thanks,
> 
> Evans
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/114eecdd-3fcb-43f4-bced-32f81080aaa3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/114eecdd-3fcb-43f4-bced-32f81080aaa3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/114eecdd-3fcb-43f4-bced-32f81080aaa3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/114eecdd-3fcb-43f4-bced-32f81080aaa3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4smY3PBGByEwijd2cauU3-jzdPwTVLBBz6a8atUE0ZmA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j4smY3PBGByEwijd2cauU3-jzdPwTVLBBz6a8atUE0ZmA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:52am UTC](https://discuss.elastic.co/t/how-to-get-term-vectors-of-all-documents-for-a-given-type/20570/3 "2017-07-06T00:52:05Z")

</div>


