[FederatedProjectPilot] Add boolean option 'removeFirst' in search() function