Allow $count and $sort inside $search
Make $count and $sort directly with mongot, and dont lose time between mongot and mongodb.
At MongoDB World last week, we announced that faster counts are now available with sharded collections.
We also announced a feature called Stored Source Fields which help you achieve faster post-aggregation performance. You can use this feature to experience faster sorting with Atlas Search.
You can read more about these two features here.
After trying Stored Source Fields, if it does not meet your performance requirements - please vote on this new feedback item.
-
KaMi commented
please allow $sort inside $search for big data
-
Ofer Chacham commented
Having the the ability to sort big number of documents inside Atlas search is crucial. The alternative of using storedSource and sort stage after that is very slow and cannot be used in a user-facing application
-
German commented
Hello, I'd like to know if this feature has been released or worked on? I'd like to use the search feature but if I use it the sort is extremely slow so I won't be able to use it without it.
-
Davis commented
I think to add $sort and $count inside $search will be useful. But the implementation others Aggregation Pipeline Stages should need to do a $sort or $count at the end to have a clean query.
Should be great if the $sort and $count as it is rigth now would be much faster.
-
Richard W. commented
A faster $sort and $count is very important for our use case.
For $count the solution presented by Marcus is already working; but what about $sort? When should we be able to test it?
-
Supriya commented
Hi Marcus,
I did try the faster count and its performing well!
I would need to know a way to perform faster sort as well. -
Ahmed commented
Hi, Is this feature releasing soon? Do we know the timeline for it?
-
Tom commented
Do we have an ETA on $sort?
-
Joe commented
Have a collection with over 3 million documents. When conducting my Atlas $search aggregation without sorting, the results return anywhere from 30ms - 70ms... when I add a $sort the results ballon to anywhere from 150ms - 2s depending on my filter criteria.
Would love for sorting in the $search stage to work!
Looks like on Oct 11, 2021 someone on the Mongo team replied below that it would be best case one month, worst case two months when this feature would be available. It's been over 3 months now... any updates?!?
-
Michael commented
Hi, is there any update on when sorting within $search will be available? Many Thanks
-
Ahmed commented
Any update on this feature?
-
Michael Joos commented
$sort inside $search is the last thing to replace elastic within our application :) - upvote.
-
Dima commented
A much anticipated feature. Would be nice to have update on release date.
-
Sebastien commented
Hello, the sort will be available too ? Any update about when ?
-
AdminMarcus Eagan (Admin, MongoDB) commented
Best case, one month. Worst case, two.
-
Pete commented
Hi, is there any update on when this may be available? Thanks.
-
S commented
Would be a great feature to get out, hoping to hear something soon !
-
Luiz commented
Is there any update regarding this feature?
-
Leidson commented
Is there any estimate when it will be available?
-
Supriya commented
Thanks for the update!! Looking forward to the new changes.