Elastic search implemented functional