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 Jan 10, 2022

Ability to set a "minimum should match" in a query

I can specify a percent of terms I want to match, for instance 100% means require all terms, 66% means, only return documents that matched at least 60% of the terms. (the default is 1 term) Ex for 100% search "foo bar" "foo bar" "bar foo" "bar hello foo" would all return "foo hello" would not
  • Guest
    Feb 3, 2022
    We offer the minimumShouldMatch parameter in the should operator of the compound query. You can easily break this out by terms on the application side and set the ratio (100% or 60%) with this parameter. See the docs here: https://docs.atlas.mongodb.com/atlas-search/compound/#mongodb-data-should Does that work for user?