This works
GET indexname/_search
{
"query": {
"script": {
"script": "doc['fieldName'].value?.length() ==3"
}
}
}
But with < and > operator it does not work
GET indexname/_search
{
"query": {
"script": {
"script": "doc['fieldName'].value?.length() > 3"
}
}
}
fieldName is of String Type.
I am using ElasticSearch 5.3.