for esearch code trace