I have following query in a file called query.json
"script": "_source.year – 1800"
I then execute the query in command-line as below.
curl -XGET 'localhost:9200/library/book/_search?pretty=true' -d @query.json
But I get an error.
SearchPhaseExecutionException: Error: unknown class or illegal statement:
The data type of "year" field is long.
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.