make it work with the latest elasticsearch
lowercased before check the some dict