# Issue when MatchPhasePrefix and Sort

**URL:** <https://discuss.elastic.co/t/issue-when-matchphaseprefix-and-sort/23379>\
**Category:** Elasticsearch\
**Created:** [April 23, 2015, 6:11pm UTC](https://discuss.elastic.co/t/issue-when-matchphaseprefix-and-sort/23379 "2015-04-23T18:11:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TB1](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TB1](https://discuss.elastic.co/u/TB1)\
**Post date:** [April 23, 2015, 6:11pm UTC](https://discuss.elastic.co/t/issue-when-matchphaseprefix-and-sort/23379/1 "2015-04-23T18:11:37Z")

</div>

When executing a search with MatchPhasePrefix on a Propety which is a large  
string.  
The search fails with error.  
"Data too large, data for [Field] would be larger than limit of  
[623326003/594.4mb]]  
ElasticsearchException[java.lang.OutOfMemoryError: Java heap space]

need help

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)\
**Post date:** [April 24, 2015, 1:16am UTC](https://discuss.elastic.co/t/issue-when-matchphaseprefix-and-sort/23379/2 "2015-04-24T01:16:26Z")

</div>

Hmmm.... why would a field that large? at 594mb?

Jason

On Fri, Apr 24, 2015 at 2:11 AM, TB [txindfun@gmail.com](mailto:txindfun@gmail.com) wrote:

> When executing a search with MatchPhasePrefix on a Propety which is a large  
> string.  
> The search fails with error.  
> "Data too large, data for [Field] would be larger than limit of  
> [623326003/594.4mb]]  
> ElasticsearchException[java.lang.OutOfMemoryError: Java heap space]
> 
> need help
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHO4ityqKPnaTNg90Dm2hvA%2BAC6UcJhhxyJHe4Asa12Wvt2S-Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHO4ityqKPnaTNg90Dm2hvA%2BAC6UcJhhxyJHe4Asa12Wvt2S-Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![TB1](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@TB1](https://discuss.elastic.co/u/TB1)\
**Post date:** [April 24, 2015, 3:27pm UTC](https://discuss.elastic.co/t/issue-when-matchphaseprefix-and-sort/23379/3 "2015-04-24T15:27:21Z")

</div>

The field is not of 594 MB, could this be related to where the JVM does not  
have enough memory allocated?  
I have set "mlock\_all: true" in the config..  
I have not the ulimit or changes the ES\_MIN and ES\_MAX variables, could  
this be related to that?

On Thursday, April 23, 2015 at 8:16:33 PM UTC-5, Jason Wee wrote:

> Hmmm.... why would a field that large? at 594mb?
> 
> Jason
> 
> On Fri, Apr 24, 2015 at 2:11 AM, TB \<[txin...@gmail.com](mailto:txin...@gmail.com) \<javascript:\>\>  
> wrote:
> 
> > When executing a search with MatchPhasePrefix on a Propety which is a  
> > large  
> > string.  
> > The search fails with error.  
> > "Data too large, data for [Field] would be larger than limit of  
> > [623326003/594.4mb]]  
> > ElasticsearchException[java.lang.OutOfMemoryError: Java heap space]
> > 
> > need help
> > 
> > --  
> > You received this message because you are subscribed to the Google  
> > Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send  
> > an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit
> 
> [https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com).
> 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c08fb292-d4ec-4348-9173-77eab3f547bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c08fb292-d4ec-4348-9173-77eab3f547bd%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 24, 2015, 8:48pm UTC](https://discuss.elastic.co/t/issue-when-matchphaseprefix-and-sort/23379/4 "2015-04-24T20:48:17Z")

</div>

See

> **[Limiting Memory Usage | Elasticsearch: The Definitive Guide \[master\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/guide/master/_limiting_memory_usage.html#circuit-breaker)**

Basically ES is protecting you against potential OOM killers.

On 25 April 2015 at 01:27, TB [txindfun@gmail.com](mailto:txindfun@gmail.com) wrote:

> The field is not of 594 MB, could this be related to where the JVM does  
> not have enough memory allocated?  
> I have set "mlock\_all: true" in the config..  
> I have not the ulimit or changes the ES\_MIN and ES\_MAX variables, could  
> this be related to that?
> 
> On Thursday, April 23, 2015 at 8:16:33 PM UTC-5, Jason Wee wrote:
> 
> > Hmmm.... why would a field that large? at 594mb?
> > 
> > Jason
> > 
> > On Fri, Apr 24, 2015 at 2:11 AM, TB [txin...@gmail.com](mailto:txin...@gmail.com) wrote:
> > 
> > > When executing a search with MatchPhasePrefix on a Propety which is a  
> > > large  
> > > string.  
> > > The search fails with error.  
> > > "Data too large, data for [Field] would be larger than limit of  
> > > [623326003/594.4mb]]  
> > > ElasticsearchException[java.lang.OutOfMemoryError: Java heap space]
> > > 
> > > need help
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups  
> > > "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an  
> > > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit
> > 
> > [https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f8f49c1c-b09b-4576-8b19-e786ec7727b6%40googlegroups.com).
> > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/c08fb292-d4ec-4348-9173-77eab3f547bd%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c08fb292-d4ec-4348-9173-77eab3f547bd%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/c08fb292-d4ec-4348-9173-77eab3f547bd%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c08fb292-d4ec-4348-9173-77eab3f547bd%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X\_ogpDpNq5ANixeC67YTa39hGAdPpVEtZKZgXbsLFGAnQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_ogpDpNq5ANixeC67YTa39hGAdPpVEtZKZgXbsLFGAnQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:17am UTC](https://discuss.elastic.co/t/issue-when-matchphaseprefix-and-sort/23379/5 "2017-07-06T00:17:46Z")

</div>

Closed on July 6, 2017, 12:17am UTC


