Added changes that allows adapters to handle the mapping of field names used in queries (e.g. foo.bar in mongo) to document field names.