My lookup does not have an “@” before the field name. Is this necessary? Also, I don’t understand why some variables have queries after the field lookup.
The response I get back from elasticsearch is as follows:
{“responses”:[{“error”:{“root_cause”:[{“type”:“query_parsing_exception”,“reason”:“Failed to parse query [SerialNumber:() AND NumberofAlohaBurstsReceived:()]”,“index”:“joeldncc-2017.06.14”,“line”:1,“col”:141},{“type”:“query_parsing_exception”,“reason”:“Failed to parse query [SerialNumber:() AND NumberofAlohaBurstsReceived:()]”,“index”:“joeldncc-2017.06.15”,“line”:1,“col”:141}],“type”:“search_phase_execution_exception”,“reason”:“all shards failed”,“phase”:“query”,“grouped”:true,“failed_shards”:[{“shard”:0,“index”:“joeldncc-2017.06.14”,“node”:“qyHnVcWrRXycI0-twro3Kg”,“reason”:{“type”:“query_parsing_exception”,“reason”:“Failed to parse query [SerialNumber:() AND NumberofAlohaBurstsReceived:()]”,“index”:“joeldncc-2017.06.14”,“line”:1,“col”:141,“caused_by”:{“type”:“parse_exception”,“reason”:"Cannot parse ‘SerialNumber:() AND NumberofAlohaBurstsReceived:()’: Encountered " “)” ") “” at line 1, column 14.\r\nWas expecting one of:\r\n …\r\n “+” …\r\n “-” …\r\n …\r\n “(” …\r\n “" …\r\n …\r\n …\r\n …\r\n …\r\n …\r\n “[” …\r\n “{” …\r\n …\r\n …\r\n "” …\r\n ",“caused_by”:{“type”:“parse_exception”,“reason”:"Encountered " “)” ") “” at line 1, column 14.\r\nWas expecting one of:\r\n …\r\n “+” …\r\n “-” …\r\n …\r\n “(” …\r\n “" …\r\n …\r\n …\r\n …\r\n …\r\n …\r\n “[” …\r\n “{” …\r\n …\r\n …\r\n "” …\r\n "}}}},{“shard”:0,“index”:“joeldncc-2017.06.15”,“node”:“qyHnVcWrRXycI0-twro3Kg”,“reason”:{“type”:“query_parsing_exception”,“reason”:“Failed to parse query [SerialNumber:() AND NumberofAlohaBurstsReceived:()]”,“index”:“joeldncc-2017.06.15”,“line”:1,“col”:141,“caused_by”:{“type”:“parse_exception”,“reason”:"Cannot parse ‘SerialNumber:() AND NumberofAlohaBurstsReceived:()’: Encountered " “)” ") “” at line 1, column 14.\r\nWas expecting one of:\r\n …\r\n “+” …\r\n “-” …\r\n …\r\n “(” …\r\n “" …\r\n …\r\n …\r\n …\r\n …\r\n …\r\n “[” …\r\n “{” …\r\n …\r\n …\r\n "” …\r\n ",“caused_by”:{“type”:“parse_exception”,“reason”:"Encountered " “)” ") “” at line 1, column 14.\r\nWas expecting one of:\r\n …\r\n “+” …\r\n “-” …\r\n …\r\n “(” …\r\n “" …\r\n …\r\n …\r\n …\r\n …\r\n …\r\n “[” …\r\n “{” …\r\n …\r\n …\r\n "” …\r\n "}}}}]}}]}