Hi,
I want to query by a field that's not indexed. A script query should solve my question , query dsl as follows:
GET /_search
{
"query": {
"bool" : {
"must" : {
"script" : {
"script" : {
"source": "_source.num > 1",
"lang": "painless"
}
}
}
}
}
}
After sending request, I got a error "Variable [_source] is not defined". Need help.