Cannot use scripted field in Elasticsearch query?

Hi all,

I'm using a scripted field, but I'm unable to query with scripted field.

Anyway we can use scripted field in elasticsearch?

For ex if I query below in dev tools it always gives count as 0:

GET my_index_*/_search { "query": { "exists": { "field": "My_Scripted_field" } } }

Any ideas?

What version are you using?

Perhaps You should try a runtime field.

1 Like

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