Fixing bug in search and adding extra functionality retrieve full object through parent object