Repository sorting should be done as a part of the query; you should not send any results back to the repository for sorting.
存储库排序应该是查询的一部分;不应该将任何结果发送回存储库进行排序。
You may want to retrieve all of the results from all of the files and run a second pass of sorting, or score based on the presence of the query word in the file.
您可能需要从所有文件中检索所有结果并再次运行排序,或根据文件中出现的查询词查询分数。
MongoDB query results are stored in cursors that provide a range of functions for filtering, aggregation, and sorting including limit(), skip(), sort(), count(), distinct() and group().
MongoDB查询结果存储在提供过滤、聚合和排序等一系列功能的游标中,包括limit()、skip()、sort()、count()、distinct() 和group()。
For more information about sorting, see sorting and Grouping Query Results.
有关排序的更多信息,请参见对查询结果进行排序和分组。
Lists topics on creating, modifying, running, and copying queries as well as basic topics on sorting, ordering, and printing query results.
列出关于创建、修改、运行和复制查询的主题以及关于将查询结果排序和打印的基本主题。
Provides links to topics with steps for sorting and grouping the results of a query.
提供指向介绍查询结果排序和分组步骤的主题的链接。
Sorting and Grouping Query Results.
查询结果的排序和群组。
Sorting and Grouping Query Results.
查询结果的排序和群组。
应用推荐