@Ram do you use Chrome? There is a really useful extension called NetSuite: Search Export, I think. I use it all the time. I create my search in NetSuite using a saved search, save it, and then there is an option that says "Export Script" when you hit the Edit button. It will show you how to do the search in both suitescript 1.0 and 2.0