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 Jun 20, 2024

Atlas Search equivalent for "should" but ignoring score

Currently to perform an "OR" check in an Atlas Search query the only available operator is "should" which contributes to score. I propose "ought" the equivalent operator, but doesn't contribute to score. Alternatively, I suggest an option to $search to omit score entirely, this could offer a little performance boost on large document set by removing the need to track score when it is not needed.
  • Guest
    Nov 13, 2024
    One could nest a `compound.should` within a `compound.filter` to achieve OR'ing without score influence.