code to tell index to store certain fields