I'm comparing 2 numeric fields, but it looks like it's not working. The results caintain docs not filtered on the condition. Did I miss something ?
GET crawl-panda-18-06-2018-2-2018/_search
{
"filtered": {
"filter": {
"script": {
"script": "doc[csv_hit].value > doc[csv_googlebot-desktop].value"
}
}
}
}
Mapping:
{
"crawl-panda-18-06-2018-2-2018": {
"aliases": {},
"mappings": {
"items": {
"properties": {
(...)
"csv_googlebot-desktop": {
"type": "long"
},
"csv_hit": {
"type": "long"
}
(...)
Results sample:
"csv_googlebot-desktop": 1,
"csv_hit": 0