Adding scope API to Java Search