mongodb/mongo — pull request #563 by dstorch (2013-12-02 17:08:22+00:00)
Title: SERVER-11852 fix query planning for inexact regexes

This is an optimization for regex queries. The existing implementation of the query planner will always add a FETCH stage when the index bounds are inexact for a regex query. There is often enough information in the index, however, to answer such queries without a FETCH. This commit eliminates these unnecessary fetches.