Json input

Hi,
I have a field from type float in my document. I want to filter in my aggregation data using json input.
when running GET my_index/ _search, I'm getting this:

"kpi": {
"mappings": {
"Defect": {
"PlanEstimate": {
"full_name": "PlanEstimate",
"mapping": {
"PlanEstimate": {
"type": "float"
}
}
}
},
"HierarchicalRequirement": {
"PlanEstimate": {
"full_name": "PlanEstimate",
"mapping": {
"PlanEstimate": {
"type": "float"
}
}
}
}
}
}
}

I've tried to create the next json input query, both in my viz and in script field:

"query": {"script": {"script": "doc['PlanEstimate'].value"}}}

I read all the tutorial that ES has to offer (Painless, Script field, How to use script, Metric) but I can't filter what I wish in my viz/ dashboard.
BTW - running this query in dev tool return data

Any idea ?
Tnx

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