Painless string to int

I think this is not producing a boolean:

doc['rcptto_count.keyword']

So you should probably test with:

doc['rcptto_count.keyword'] != null
1 Like