Prep for elasticsearch