add indexBy.