# New in ES - Indexing long text for Full Text Search

**URL:** <https://discuss.elastic.co/t/new-in-es-indexing-long-text-for-full-text-search/79548>\
**Category:** Elasticsearch\
**Created:** [March 22, 2017, 7:54am UTC](https://discuss.elastic.co/t/new-in-es-indexing-long-text-for-full-text-search/79548 "2017-03-22T07:54:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rachelle\_Green](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@Rachelle\_Green](https://discuss.elastic.co/u/Rachelle_Green)\
**Post date:** [March 22, 2017, 7:54am UTC](https://discuss.elastic.co/t/new-in-es-indexing-long-text-for-full-text-search/79548/1 "2017-03-22T07:54:01Z")

</div>

I have one very long text broken down into blocks.  
when serching I need to return x words befor term and X words after term  
EVEN IF THE WORDS ARE IN THE NEXT/PREV BLOCK

what whould be the best way to index this, and then how should I query?

THANX FOR YOUR TIME!  
A new ES FAN

---

<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:** [April 19, 2017, 7:54am UTC](https://discuss.elastic.co/t/new-in-es-indexing-long-text-for-full-text-search/79548/2 "2017-04-19T07:54:11Z")

</div>

Closed on April 19, 2017, 7:54am UTC

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