Say I have documents with the following fields: {field1, field2, ... fieldn}
I need to run some queries in which, for some conditions, a comparison between two or more fields is required. like fieldX = fieldY
In standard SQL, an example might be:
SELECT * FROM Table1 WHERE farePrice>100 AND originRegion = destinationRegion
I read some documentation and it seems like "scripting" might be the only way to achieve this? Or are there other options?
elasticsearch
jdiaz4517
source share