# Cant we use scripted fields in dev console to perform any operations in elastic search

**URL:** <https://discuss.elastic.co/t/cant-we-use-scripted-fields-in-dev-console-to-perform-any-operations-in-elastic-search/169843>\
**Category:** Elasticsearch\
**Created:** [February 25, 2019, 1:35pm UTC](https://discuss.elastic.co/t/cant-we-use-scripted-fields-in-dev-console-to-perform-any-operations-in-elastic-search/169843 "2019-02-25T13:35:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRUDHVI\_CHOWDHARY\_NE](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@PRUDHVI\_CHOWDHARY\_NE](https://discuss.elastic.co/u/PRUDHVI_CHOWDHARY_NE)\
**Post date:** [February 25, 2019, 1:35pm UTC](https://discuss.elastic.co/t/cant-we-use-scripted-fields-in-dev-console-to-perform-any-operations-in-elastic-search/169843/1 "2019-02-25T13:35:52Z")

</div>

I have a scripted field(named as exit\_time) created by me.  
Now i want to use this exit\_time in dev console(kibana) to perform certain operations like delete,etc on documents present in the my index of elastic search.

How can i do this?Is it possible.

---

<div class="post-metadata">

**Author:** ![PRUDHVI\_CHOWDHARY\_NE](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@PRUDHVI\_CHOWDHARY\_NE](https://discuss.elastic.co/u/PRUDHVI_CHOWDHARY_NE)\
**Post date:** [February 25, 2019, 1:45pm UTC](https://discuss.elastic.co/t/cant-we-use-scripted-fields-in-dev-console-to-perform-any-operations-in-elastic-search/169843/2 "2019-02-25T13:45:49Z")

</div>

This is the query , i am trying in dev console of kibana

POST fqedup1/\_delete\_by\_query?routing=1  
{  
"query": {  
"range" : {  
"difference" : {  
"gte" : 17891245689  
}  
}  
}  
}

Here "difference" is a script field created by me (of type "number")  
while i am executing this none of them is deleting.

 ![q1](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e190789d888e79c0c5d8e12db76791898afdd73a.png)

output in kibana dev console:

{  
"took" : 0,  
"timed\_out" : false,  
"total" : 0,  
"deleted" : 0,  
"batches" : 0,  
"version\_conflicts" : 0,  
"noops" : 0,  
"retries" : {  
"bulk" : 0,  
"search" : 0  
},  
"throttled\_millis" : 0,  
"requests\_per\_second" : -1.0,  
"throttled\_until\_millis" : 0,  
"failures" :   
}

---

<div class="post-metadata">

**Author:** ![PRUDHVI\_CHOWDHARY\_NE](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@PRUDHVI\_CHOWDHARY\_NE](https://discuss.elastic.co/u/PRUDHVI_CHOWDHARY_NE)\
**Post date:** [February 25, 2019, 4:20pm UTC](https://discuss.elastic.co/t/cant-we-use-scripted-fields-in-dev-console-to-perform-any-operations-in-elastic-search/169843/3 "2019-02-25T16:20:34Z")

</div>

in gte ,keeping any value,getting same output

---

<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:** [March 25, 2019, 4:20pm UTC](https://discuss.elastic.co/t/cant-we-use-scripted-fields-in-dev-console-to-perform-any-operations-in-elastic-search/169843/4 "2019-03-25T16:20:45Z")

</div>

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