add indexing to category field