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 Completed
Categories Atlas Search
Created by Guest
Created on Aug 4, 2023

Allow sort by boolean fields

When creating indexes and sorting with "normal" queries, it is possible to index/sort on a boolean field. I was hoping to do this with Atlas Search Sort as well, but it only supports date, number and token (string). While workarounds are available (using custom scoring), these are not easily combined with multiple sort fields and make programmatically building a query vastly more complex. See: https://support.mongodb.com/case/01169728
  • ADMIN RESPONSE
    Oct 18, 2025
    This work has been completed; see changelog ( https://www.mongodb.com/docs/atlas/atlas-search/changelog/#28-june-2024-release ) and documentation ( https://www.mongodb.com/docs/atlas/atlas-search/sort/#sort-by-boolean ).
  • Guest
    Aug 14, 2023
    While this feature would be valuable for me, I've had a better idea that would solve it and all kinds of other scenarios as well: https://feedback.mongodb.com/forums/924868-atlas-search/suggestions/47081989-allow-aggregate-pipeline-on-input-documents-before
  • Guest
    Aug 4, 2023
    It is my understanding this feature may be in the works, but I was unable to find an existing feature request for it.