Add elasticsearch mode