Reimplement search using new endpoint

Remove old elasticsearch code