some test code for elasticsearch