add static method seach_by method to objects to search object with a different key than _id in REST operations