Updated code to be compatible with 0.90.2

changed maven jar dependency
changed function names to accomodate new elasticsearch
Thanks to Alexandru Dragomir for submitting the fixes