2d indexes and $nearSphere queries

In https://www.mongodb.com/docs/manual/geospatial-queries/#2d, it says:

2d indexes support queries that calculate geometries on a two-dimensional plane. Although the index can support $nearSphere queries that calculate on a sphere, if possible, …

Is such statement still true?

I’m testing it out in the sample_restaurants sample db, and created a 2d indexes in it. however, when doing $nearSphere operation on it, but I’m still getting the error of:

planner returned error :: caused by :: unable to find index for $geoNear query

As if the index was not created.

Can somebody confirm please?