# Length text exceeded : Problem in ingesting

**URL:** <https://discuss.elastic.co/t/length-text-exceeded-problem-in-ingesting/123019>\
**Category:** Elasticsearch\
**Created:** [March 8, 2018, 8:20am UTC](https://discuss.elastic.co/t/length-text-exceeded-problem-in-ingesting/123019 "2018-03-08T08:20:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akml\_kk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akml_kk/32/31069_2.png) [@akml\_kk](https://discuss.elastic.co/u/akml_kk)\
**Post date:** [March 8, 2018, 8:20am UTC](https://discuss.elastic.co/t/length-text-exceeded-problem-in-ingesting/123019/1 "2018-03-08T08:20:37Z")

</div>

Using Es 6.2.2 ,I'm trying to ingest a pdf in elasticsearch and filter its field with openNlp, However i got this response in kibana dev tools :

```
{
  "statusCode": 504,
  "error": "Gateway Time-out",
  "message": "Client request timeout"
}

```

and elasticSearch return :

```
[WARN][d.o.a.l.s.u.CustomUnifiedHighlighter] The length of text to be analyzed for highlighting 
[924528] exceeded the allowed maximum of [10000] set for the next major Elastic version. For large 
texts, indexing with offsets or term vectors is recommended!

```

so what's wrong ?  
what's indexing with offsets or term vectors ?

---

<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 5, 2018, 8:20am UTC](https://discuss.elastic.co/t/length-text-exceeded-problem-in-ingesting/123019/2 "2018-04-05T08:20:37Z")

</div>

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