Refactor some search stuff

this can be just `data['offline']`