# How to get termPositions in es?

**URL:** <https://discuss.elastic.co/t/how-to-get-termpositions-in-es/9815>\
**Category:** Elasticsearch\
**Created:** [November 25, 2012, 6:57am UTC](https://discuss.elastic.co/t/how-to-get-termpositions-in-es/9815 "2012-11-25T06:57:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stanley](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@stanley](https://discuss.elastic.co/u/stanley)\
**Post date:** [November 25, 2012, 6:57am UTC](https://discuss.elastic.co/t/how-to-get-termpositions-in-es/9815/1 "2012-11-25T06:57:58Z")

</div>

Hello,  
It's known that in lucene one can get a termPositions object using like this:  
TermPositions tp = reader.termPositions(new Term("filedName", "queryTerm"));  
Then he can fetch the position of the specific term in every matched document.  
I am wondering is there any similar function provided by elasticsearch as well?  
Thank you.

---

<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:03am UTC](https://discuss.elastic.co/t/how-to-get-termpositions-in-es/9815/2 "2017-07-06T03:03:01Z")

</div>


