moved searchdocument into model package