search api backend implmentation