# A huge sized document(3.5 mb) is not searchable in Appsearch

**URL:** https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [October 13, 2021, 8:22am UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593 "2021-10-13T08:22:38Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Balaji\_Sudharsanam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balaji_sudharsanam/32/95347_2.png) [@Balaji\_Sudharsanam](https://discuss.elastic.co/u/Balaji_Sudharsanam)
#### Post date: [October 13, 2021, 8:22am UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/1 "2021-10-13T08:22:38Z")

</div>

I have a single document(too huge) indexed in App Search , which has 3.5 mb content in it.  
I reiterate, a single document's property having 3.5 mb size of words indexed in it.

App Search does not support search on that document. I mean the search query returns 0 results.  
App Search UI also does not load that particular document. This is a secondary issue. The foremost thing is search.

However doing a GetById call, I can find the huge contents inside that document.

Do we have a solution to solve this please?

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [October 13, 2021, 12:58pm UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/2 "2021-10-13T12:58:05Z")

</div>

The maximum size of a document is 100kb. How did you get a document that large indexed? For reference: [Limits | Elastic App Search Documentation [7.15] | Elastic](https://www.elastic.co/guide/en/app-search/current/limits.html#limits).

---

<div class="post-metadata">

### Author: ![Subhasis\_Dash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/subhasis_dash/32/68827_2.png) [@Subhasis\_Dash](https://discuss.elastic.co/u/Subhasis_Dash)
#### Post date: [October 13, 2021, 1:21pm UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/3 "2021-10-13T13:21:29Z")

</div>

The document size is configurable for app search,  
app\_search.engine.document\_size.limit: 100kb

> **[Configuration | Elastic Enterprise Search Documentation \[7.15\] | Elastic](https://www.elastic.co/guide/en/enterprise-search/7.15/configuration.html)**

we have it configured to 10MB now,

If we try to index a book and its contents to appsearch, sometimes we get this issue that the document is not searchable, however Get By ID returns the document.

Can you think of anything that could cause this issue?

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [October 13, 2021, 3:18pm UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/4 "2021-10-13T15:18:35Z")

</div>

> [@Subhasis\_Dash](#):
>
> Can you think of anything that could cause this issue?

I'm fairly certain you're having that issue because your document is just too large.

The limits are configurable, but if you configure a limit to an extreme like that, you might certainly find edges.

The best I can do is refer you to this recommendation from the Elasticsearch docs: [General recommendations | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/general-recommendations.html#maximum-document-size)

---

<div class="post-metadata">

### Author: ![Balaji\_Sudharsanam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balaji_sudharsanam/32/95347_2.png) [@Balaji\_Sudharsanam](https://discuss.elastic.co/u/Balaji_Sudharsanam)
#### Post date: [October 14, 2021, 6:29am UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/5 "2021-10-14T06:29:48Z")

</div>

Thanks @JasonStoltz for pointing the Elastic recommendations,

A follow up clarification,

1. If we split the file into multiple chunks, we will have multple documents (say 15 chunks and 15 documents) in Appsearch for a single file.
2. Lets say every document has 4 properties, fileId, chunkId, fileName and fileContent, if the user searches for filename we cannot give 15 search responses. However it works for the fileContent search.
3. Do we have the possibility, to address this as a parent/child mapped documents, so that only the parent document will have the fileId and filename.

---

<div class="post-metadata">

### Author: ![Balaji\_Sudharsanam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balaji_sudharsanam/32/95347_2.png) [@Balaji\_Sudharsanam](https://discuss.elastic.co/u/Balaji_Sudharsanam)
#### Post date: [October 14, 2021, 7:08am UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/6 "2021-10-14T07:08:58Z")

</div>

Thanks to the recommendations.

A document of size ~3.5 mb, may not be fairly large size, based on this  
[[Indexing very large document in ES](https://discuss.elastic.co/t/indexing-very-large-document-in-es/12890)]([https://elastic](https://elastic) search discussion)  
Do we have a quick workaround like increasing the memory , to address this problem as temporary fix, till we come up with a scalable solution?

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [October 14, 2021, 2:55pm UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/7 "2021-10-14T14:55:47Z")

</div>

If you chunk your responses as you describe, you may be able to use [grouping](https://www.elastic.co/guide/en/app-search/current/grouping.html) to ensure you only have 1 result for each file.

---

<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: [November 11, 2021, 2:56pm UTC](https://discuss.elastic.co/t/a-huge-sized-document-3-5-mb-is-not-searchable-in-appsearch/286593/8 "2021-11-11T14:56:43Z")

</div>

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