# Term vector

**URL:** <https://discuss.elastic.co/t/term-vector/6796>\
**Category:** Elasticsearch\
**Created:** [February 23, 2012, 7:10pm UTC](https://discuss.elastic.co/t/term-vector/6796 "2012-02-23T19:10:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loco\_Jay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loco_jay/32/2982_2.png) [@Loco\_Jay](https://discuss.elastic.co/u/Loco_Jay)\
**Post date:** [February 23, 2012, 7:10pm UTC](https://discuss.elastic.co/t/term-vector/6796/1 "2012-02-23T19:10:46Z")

</div>

Hi i would like to access the term vector of a document to do some clustering ....  
Is  
[http://lucene.apache.org/core/old\_versioned\_docs/versions/3\_0\_3/api/contrib-instantiated/org/apache/lucene/store/instantiated/InstantiatedIndexReader.html#getTermFreqVector(int,%20java.lang.String,%20org.apache.lucene.index.TermVectorMapper)](http://lucene.apache.org/core/old_versioned_docs/versions/3_0_3/api/contrib-instantiated/org/apache/lucene/store/instantiated/InstantiatedIndexReader.html#getTermFreqVector(int,%20java.lang.String,%20org.apache.lucene.index.TermVectorMapper))

exposed or does one need to code a plugin?

Thanks for helping

---

<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 26, 2012, 7:19pm UTC](https://discuss.elastic.co/t/term-vector/6796/2 "2012-02-26T19:19:41Z")

</div>

You have to do some coding to get it, through a plugin.

On Thursday, February 23, 2012 at 9:10 PM, Loco Jay wrote:

> Hi i would like to access the term vector of a document to do some clustering ....  
> Is  
> [InstantiatedIndexReader (Lucene 3.0.3 API)](http://lucene.apache.org/core/old_versioned_docs/versions/3_0_3/api/contrib-instantiated/org/apache/lucene/store/instantiated/InstantiatedIndexReader.html#getTermFreqVector(int,%20java.lang.String,%20org.apache.lucene.index.TermVectorMapper))
> 
> exposed or does one need to code a plugin?
> 
> Thanks for helping

---

<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, 3:38am UTC](https://discuss.elastic.co/t/term-vector/6796/3 "2017-07-06T03:38:13Z")

</div>

Closed on July 6, 2017, 3:38am UTC


