As the existing method NotesView.refresh does NOT refreshing the views index but just updates the in-memory object data with the current view index, I´d wish there was a script method which would really refresh/rebuild the views index.
In addition it would be usefull to give the function an optional parameter to either wait for the updall process to finish or to it as an asynchronous updall process, so the script just proceeds but knowing the index update is started (and not only queued!).
This new methiod would be very useful for views with indexes not being updated immediately but hourly or even manually. Before one could work with such a view within a scripting agent, the index needs to be up-to-date!
Of cause the new functions are also needed within the Java pendant.
By the way: The current help entry for the NotesView.Refresh method is very misleading or even wrong!