I’m trying to normalize the score to apply a threshold using $match to improve the search abilities, but the steps $addField, $setWindowFields and $addField are taking too long, How can I improve this step?
Skip to main content
First - help us understand why you need to normalize scores (generally that’s not done) - can you explain the scenario?
Also, can you provide the query aggregation pipeline? Note that stages that appear after $search will consume the full set of search results at that point - so do a $limit before those stages if possible, otherwise things will slow down the more results you have.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Indexing is not applying when I used $regex in My aggregate pipeline. | 1 | 426 | Jul 2024 |
Updating indexes as part of deploy server build process? | 0 | 175 | Jul 2024 |
Another Special Character Question | 0 | 125 | Aug 2024 |
How to return only index of object array with highlighted search terms in MongoDB Atlas Search | 0 | 28 | Sep 2024 |
Atlas search only return results where $lookup search matches? | 1 | 24 | Jan 23 |