# Interval option throws error when numeric range above 2147483647

**URL:** <https://discuss.elastic.co/t/interval-option-throws-error-when-numeric-range-above-2147483647/79961>\
**Category:** Elasticsearch\
**Created:** [March 24, 2017, 10:41pm UTC](https://discuss.elastic.co/t/interval-option-throws-error-when-numeric-range-above-2147483647/79961 "2017-03-24T22:41:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manvir\_Basra](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@Manvir\_Basra](https://discuss.elastic.co/u/Manvir_Basra)\
**Post date:** [March 24, 2017, 10:41pm UTC](https://discuss.elastic.co/t/interval-option-throws-error-when-numeric-range-above-2147483647/79961/1 "2017-03-24T22:41:27Z")

</div>

I am getting failed to create query exception on using Interval operation in regexp query when max value in following query is above 2147483647 (max int value). Can this value be increased to match long size?

Works fine  
"value": "mo\<1-2147483647\>",

Throws exception  
"value": "mo\<1-2147483648\>",

Complete Query  
{  
"query": {  
"bool": {  
"must": [{  
"regexp": {  
"number": {  
"value": "mo\<1-2147483648\>",  
"flags": "ALL"  
}  
}  
}  
]  
}  
}  
}

"root\_cause": [  
{  
"type": "query\_shard\_exception",  
"reason": "failed to create query: {\n "bool" : {\n "must" : [\n {\n "regexp" : {\n "number" : {\n "value" : "mo\<1-2147483648\>",\n "flags\_value" : 65535,\n "max\_determinized\_states" : 10000,\n "boost" : 1.0\n }\n }\n }\n],\n "disable\_coord" : false,\n "adjust\_pure\_negative" : true,\n "boost" : 1.0\n }\n}",  
"index\_uuid": "U5F7R52PScuv0Z9TDgACpg",  
"index": "test\_index"  
}

---

<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 21, 2017, 10:41pm UTC](https://discuss.elastic.co/t/interval-option-throws-error-when-numeric-range-above-2147483647/79961/2 "2017-04-21T22:41:42Z")

</div>

Closed on April 21, 2017, 10:41pm UTC

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