# Maximum character limit in a Query

**URL:** https://discuss.elastic.co/t/maximum-character-limit-in-a-query/213740
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [January 3, 2020, 6:49pm UTC](https://discuss.elastic.co/t/maximum-character-limit-in-a-query/213740 "2020-01-03T18:49:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![joao\_Dubas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joao_dubas/32/60258_2.png) [@joao\_Dubas](https://discuss.elastic.co/u/joao_Dubas)
#### Post date: [January 3, 2020, 6:49pm UTC](https://discuss.elastic.co/t/maximum-character-limit-in-a-query/213740/1 "2020-01-03T18:49:12Z")

</div>

Hi!  
I'm new to the elk, and i have installed the self-managed appsearch.  
And i need to make querys with more then 128 characters, how do i raise that limit?

---

<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: [January 6, 2020, 11:51am UTC](https://discuss.elastic.co/t/maximum-character-limit-in-a-query/213740/2 "2020-01-06T11:51:19Z")

</div>

Hi @joao_Dubas. To my knowledge, there is currently no way to increase this limit, unfortunately.

I'm curious though, what sort of queries are you making that require more than 128 characters?

---

<div class="post-metadata">

### Author: ![joao\_Dubas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joao_dubas/32/60258_2.png) [@joao\_Dubas](https://discuss.elastic.co/u/joao_Dubas)
#### Post date: [January 6, 2020, 12:12pm UTC](https://discuss.elastic.co/t/maximum-character-limit-in-a-query/213740/3 "2020-01-06T12:12:43Z")

</div>

Hi @JasonStoltz, thanks for the reply.  
I'm with a project to optimization of a shop, who recive the descrition of a product, and have to offer the best offer in they database, but they recive like 5000 of descriptions and they have to analise one by one.  
And some of the descriptions have more than 128 charatceres

---

<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: [January 6, 2020, 12:38pm UTC](https://discuss.elastic.co/t/maximum-character-limit-in-a-query/213740/4 "2020-01-06T12:38:45Z")

</div>

@joao_Dubas I understand. I would think you could still get good results with only 128 characters of the description.

I'd truncate the description down to 128 characters before querying, making sure _not_ to include any partial words. Meaning, if you truncate the string to 128 characters, and that would break a word like "product" into "pro", then be sure to drop the entire word.

You could also drop common stop words for your particular language, like "and", "or", "the", etc., since those will be ignored by your language analyzer anyway.

---

<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: [February 3, 2020, 12:38pm UTC](https://discuss.elastic.co/t/maximum-character-limit-in-a-query/213740/5 "2020-02-03T12:38:46Z")

</div>

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