How to search within the same nested object