===test if bool query is wrong=================== orig : {"query":{"bool":{"should":[{"match":{"is-required":true}},{"match":{"node-id":sim2}}]}}} totest: {"query":{"bool":{"should":[{"match":{"is-required":true}},{"match":{"node-id":"sim2"}}]}}} ===test if bool query is wrong=================== orig : {"query":{"bool":{"must":[{"match":{"is-required":true}},{"match":{"node-id":sim2}}]}}} totest: {"query":{"bool":{"must":[{"match":{"is-required":true}},{"match":{"node-id":"sim2"}}]}}} ===test if match query is wrong=================== orig : {"query":{"match":{"is-required":true}}} totest: {"query":{"match":{"is-required":true}}} ===test if range query is wrong=================== orig : {"query":{"range":{"timestamp":{"lte":"2017-08-10T20:00:00.0Z","boost":2.0}}}} totest: {"query":{"range":{"timestamp":{"boost":2,"lte":"2017-08-10T20:00:00.0Z"}}}} ===test if range and bool query is wrong1=================== orig : {"query":{"bool":{"must":[{"match":{"is-required":true}},{"regexp":{"node-id":{"max_determinized_states":10000,"flags":"ALL","value":"sim.*"}}}]}}} totest: {"query":{"bool":{"must":[{"match":{"is-required":true}},{"regexp":{"node-id":{"max_determinized_states":10000,"flags":"ALL","value":"sim.*"}}}]}}} ===test if range and bool query is wrong2=================== orig : {"query":{"bool":{"must":[{"match":{"is-required":true}},{"regexp":{"node-id":{"max_determinized_states":10000,"flags":"ALL","value":"sim.*"}}}]}}} totest: {"query":{"bool":{"must":[{"regexp":{"node-id":{"max_determinized_states":10000,"flags":"ALL","value":"sim.*"}}},{"match":{"is-required":true}}]}}} ===test if term query is wrong=================== orig : {"query":{"term":{"node-id":"abc"}}} totest: {"query":{"term":{"node-id":"abc"}}} ===test if aggregation query is wrong=================== orig : {"size":20,"query":{"match_all":{}},"from":120} totest: {"size":20,"query":{"match_all":{}},"from":120} ===test if aggregation query is wrong=================== orig : {"query":{"match_all":{}},"aggs":{"severity":{"terms":{"field":"severity"}}}} totest: {"query":{"match_all":{}},"aggs":{"severity":{"terms":{"field":"severity"}}}} ===test if bool single query is wrong=================== orig : {"query":{"bool":{"must":{"match":{"is-required":true}}}}} totest: {"query":{"bool":{"must":{"match":{"is-required":true}}}}} ===test if match all query is wrong=================== orig : {"query":{"match_all":{}}} totest: {"query":{"match_all":{}}} ===test if bool single query is wrong=================== orig : {"query":{"bool":{"should":{"match":{"is-required":true}}}}} totest: {"query":{"bool":{"should":{"match":{"is-required":true}}}}} ===test if sortorder is wrong=================== orig : {"query":{"match_all":{}},"sort":[{"node-id":{"order":"asc"}}]} totest: {"query":{"match_all":{}},"sort":[{"node-id":{"order":"asc"}}]} ===test if sortorder is wrong=================== orig : {"query":{"match_all":{}},"sort":[{"node-id":{"order":"desc"}}]} totest: {"query":{"match_all":{}},"sort":[{"node-id":{"order":"desc"}}]}