# Generating term vectors on the fly

**URL:** https://discuss.elastic.co/t/generating-term-vectors-on-the-fly/342784
**Category:** Elasticsearch
**Created:** [September 12, 2023, 6:47am UTC](https://discuss.elastic.co/t/generating-term-vectors-on-the-fly/342784 "2023-09-12T06:47:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![d\_u](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@d\_u](https://discuss.elastic.co/u/d_u)
#### Post date: [September 12, 2023, 6:47am UTC](https://discuss.elastic.co/t/generating-term-vectors-on-the-fly/342784/1 "2023-09-12T06:47:54Z")

</div>

Suppose, I have more than 1mil documents where I have a text field lets say "Contents". We have not enabled termvector for the index.

Now when we want to find count of occurrence of a word lets say "data" in "Contents" , I am thinking of generating term vectors on the fly. But had below queries.

Can you please tell me what do we mean when we say " Note that for the field `text` , the terms are not re-generated." ? - refer below image.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bd883e389fb55ff32e9f702f63b705a93be2bf32.png)

Additionally what will be impact on performance when we use term vector on the fly for text field? Do you have any data which you can share?

Thanks,  
DU

---

<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: [October 10, 2023, 6:48am UTC](https://discuss.elastic.co/t/generating-term-vectors-on-the-fly/342784/2 "2023-10-10T06:48:38Z")

</div>

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