My index is giving shard error

Whenever I try to make a filter field my index is giving shard failed error. Where 'labels.is_error' is a Boolean field with true and false as its 2 answers.
The filter field is -
doc['labels.is_error'].value == true ? 1 : 0
in number percentage but it gives me error each time.

Hi Sheetal,

Are you using scripted fields as your filter in discover?

Thanks,
Bhavya

No, I am not using it anywhere as of now