# Query document with very large text field

**URL:** <https://discuss.elastic.co/t/query-document-with-very-large-text-field/45051>\
**Category:** Elasticsearch\
**Created:** [March 21, 2016, 9:42pm UTC](https://discuss.elastic.co/t/query-document-with-very-large-text-field/45051 "2016-03-21T21:42:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xuan\_Hung\_Ta](https://avatars.discourse-cdn.com/v4/letter/x/8c91f0/32.png) [@Xuan\_Hung\_Ta](https://discuss.elastic.co/u/Xuan_Hung_Ta)\
**Post date:** [March 21, 2016, 9:42pm UTC](https://discuss.elastic.co/t/query-document-with-very-large-text-field/45051/1 "2016-03-21T21:42:15Z")

</div>

Hi,

We have indexed 10k documents which have very large text field. The text field of a document is an union of the text in the element pages.  
The mapping looks like that

"docs":{  
"properties":{  
"text":{  
"type":"string",  
"index":"analyzed",  
"term\_vector":"yes",  
"index\_options":"offsets"  
}

It takes 4s when searching with text field in the query:  
{  
"fuzzy\_like\_this\_field":{  
"text" : {  
"like\_text" : query,  
"max\_query\_terms" : 12  
}  
}  
}

And it takes less than 1 s when searching without text field in the query.

Could you help in optimising the queries against the very large text field in this case.

Thanks a lot

---

<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 5, 2017, 11:06pm UTC](https://discuss.elastic.co/t/query-document-with-very-large-text-field/45051/2 "2017-07-05T23:06:27Z")

</div>


