move search api classes to model.api