Working on search by custom field function