# Script get error

**URL:** https://discuss.elastic.co/t/script-get-error/12671
**Category:** Elasticsearch
**Created:** [July 5, 2013, 4:40am UTC](https://discuss.elastic.co/t/script-get-error/12671 "2013-07-05T04:40:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lijionly](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@lijionly](https://discuss.elastic.co/u/lijionly)
#### Post date: [July 5, 2013, 4:40am UTC](https://discuss.elastic.co/t/script-get-error/12671/1 "2013-07-05T04:40:59Z")

</div>

Hi,  
I do query like this:  
{  
"query":{  
"filtered":{  
"query":{  
"term":{  
"AppID":"51w"  
}  
},  
"filter":{  
"script":{  
"script":"doc['ResponseLength'].value \> 1"  
}  
}  
}  
}  
}

but get error response:  
{  
"took" : 8,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 4,  
"failed" : 1,  
"failures" : [ {  
"index" : "20130703",  
"shard" : 2,  
"status" : 500,  
"reason" : "QueryPhaseExecutionException[[20130703][2]:  
query[filtered(filtered(AppID:51w)-\>ScriptFilter(doc[ResponseLength].value

> 1))-\>cache(\_type:applicationaccess)],from[0],size[10]: Query Failed  
> [Failed to execute main query]]; nested: CompileException[[Error: No field  
> found for  
> [org.elasticsearch.index.fielddata.ScriptDocValues$Longs@625aaaca] in  
> mapping with types [applicationaccess]]\n[Near : {...  
> doc[ResponseLength].value \> 1 ....}]\n ^\n[Line: 1, Column:  
> 1]]; nested: ElasticSearchIllegalArgumentException[No field found for  
> [org.elasticsearch.index.fielddata.ScriptDocValues$Longs@625aaaca] in  
> mapping with types [applicationaccess]]; "  
> } ]  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![lijionly](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@lijionly](https://discuss.elastic.co/u/lijionly)
#### Post date: [July 8, 2013, 2:24am UTC](https://discuss.elastic.co/t/script-get-error/12671/2 "2013-07-08T02:24:40Z")

</div>

anyone could 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [July 8, 2013, 5:53am UTC](https://discuss.elastic.co/t/script-get-error/12671/3 "2013-07-08T05:53:57Z")

</div>

Hey,

can you create a reproducible test-case, so we can check if you ran into a  
bug? This includes index creation, mapping, data import and your query,  
with a curl recreation. See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help/)

Thanks!

On Mon, Jul 8, 2013 at 4:24 AM, [lijionly@gmail.com](mailto:lijionly@gmail.com) wrote:

> anyone could 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:27am UTC](https://discuss.elastic.co/t/script-get-error/12671/4 "2017-07-06T02:27:44Z")

</div>


