creating cleaner api to do searches, so that relations can also be used as searchfield