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 |
---|---|---|---|
Combining dynamic and static fields | 2 | 595 | May 2024 |
DELETE doesnt work | 1 | 291 | Jul 2024 |
Having problems with php, atlas search compound and date ranges | 5 | 268 | Aug 2024 |
Atlas Search with nextPageToken returns duplicated documents | 4 | 96 | Sep 2024 |
How to create mongo Atlas ngram Search Index | 1 | 75 | Dec 2024 |