changed to module to be used with 0.90 elaticsearch and without java wrapper