Hello!

I converted a string into int using scripted fields. Now I am trying to subtract this field with another field inside the the index pattern. My document looks something like this:

```
{
"_source": {
"type": "example",
"example": {
"value1": 000,
"value_to_subtract": 6
},
"fields": {
"test1": [
000
],
"test2_int_to_subtract": [
8
],
"timestamp": [
"0000-00-00T00:00:00.000Z"
]
}
}
```

So I am creating a scripted field like that

` doc['test2_int_to_subtract'].value - doc['example.value_to_subtract'].value`

,

however I have shard failure in discover.

```
org.elasticsearch.search.lookup.LeafDocLookup.get(LeafDocLookup.java:94)
org.elasticsearch.search.lookup.LeafDocLookup.get(LeafDocLookup.java:41)
doc['test2_int_to_subtract'].value - doc['example.value_to_subtract'].value
^---- HERE
```

What am I doing wrong?

Thank you very much in advance!

/Angelos