The problem is when i run this code it takes nearly 10 seconds to provide me the results. But if i do the same search from the Java Search Page the results will be presented in a time which is less than 5 seconds. All this times are wall clock times. The search scope is also workspace including all libs, jre etc.
Am i doing something wrong? Is their any space i can improve further?