update es term query