Hendrike es integration.

-- Query xtas results
-- Return xtas results
-- Fixing bug where indexes could not be deleted.