Update search classes

@tanghus, this is in reference to https://github.com/owncloud/core/pull/4553#issuecomment-30235122. Pretty similar to https://github.com/owncloud/calendar/pull/253.