added domain transform function to modify items before they get indexed