(Vishal)Logic for search