# ElasticSearch plugin: access to text field

**URL:** <https://discuss.elastic.co/t/elasticsearch-plugin-access-to-text-field/219464>\
**Category:** Elasticsearch\
**Created:** [February 15, 2020, 7:08am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-access-to-text-field/219464 "2020-02-15T07:08:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KTOIA](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@KTOIA](https://discuss.elastic.co/u/KTOIA)\
**Post date:** [February 15, 2020, 7:08am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-access-to-text-field/219464/1 "2020-02-15T07:08:36Z")

</div>

I need to access to text field at ES document. I have used LeafReaderContext and only found  
`leafContext.reader().getSortedSetDocValues(fieldName)`  
But it contains a set of all values. Is Any way to access text field value by name?

---

<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:** [March 14, 2020, 7:08am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-access-to-text-field/219464/2 "2020-03-14T07:08:43Z")

</div>

Closed on March 14, 2020, 7:08am UTC

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