If you use GET + PUT the index will be dealt with automatically.
 
  Eric