As far as I know, ther shouldn't be a method to perform re-indexes. When you re-index your JIRA, the instance would be unaccessible, so I think that to avoid any sudden accessibility problems, you might want to reconsider doing so programatically.
However, in JIRA 5.2, there iss the option to perform a background re-index, where you can re-index AND still use your instance.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG