Replace filename with content in xapr_index method

* Instead of a filename with data to index, give the text content to
  index.