SERVER-8871 removed default switch case from encodeMatchType