做了文本搜索,發現很多結果重復,想去重,怎樣做?
目前我嘗試用了,distinct ,但只能回傳去重的那一列,,不是真個物件,而且不能指定結果截取多少條。
然后使用 aggregate,,但遇到報錯,com.mongodb.MongoCommandException: Command failed with error 40324 (Location40324): 'Unrecognized pipeline stage name: '$text''
請教下:文本搜索,支持group去重的嗎?
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/271694.html
標籤:MongoDB
