Don't need transformForIndexing function as we already have a function called transform for index