code: public void updateIndex() {
  
          CmsRpcAction<Void> action = new CmsRpcAction<Void>() {
  
              @Override
              public void execute() {
  
                  start(200, true);
                  getGalleryService().updateIndex(this);
              }
  
              @Override
              protected void onResponse(Void result) {
  
                  stop(false);
                  updateResultsTab(false);
                  m_handler.hideShowPreviewButton(true);
              }
          };
          action.execute();
      }
docs: Updates the gallery index and triggers a new search afterwards.<p>