Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas Search
Created by Guest
Created on Dec 1, 2022

Support ObjectID as a datatype for search facets

I'm really interested in using search facets to boost search performance, but one of the fields that I want to filter by is an ObjectId. I believe the only supported facet types are [date, numberFacet, stringFacet].
  • ADMIN RESPONSE
    Oct 18, 2025
    You can now transform documents for Atlas Search, enabling you to index and query (including `facet`) ObjectID fields as a String. See how here ( https://www.mongodb.com/docs/atlas/atlas-search/transform-documents-collections/#example--add-or-modify-fields ).
  • Guest
    Aug 10, 2024
    This feature is important and has a few use cases especially in optimizing batch jobs against large collections.
  • Guest
    Jul 14, 2023
    We have a database containing over 55 million documents! It would be highly appreciated if we could incorporate a Facet data type for ObjectId. Our objective is to optimize the speed and efficiency of our system.