@@ -73,7 +73,8 @@ public void setupProjectIndex(String suffix) {
73
73
"searchableAttributes" , List .of ("name" , "namespace.owner" , "description" , "category" , "mainPageContent" , "memberNames" , "createdAt" , "lastUpdated" , "stats" , "settings.keywords" , "settings.tags" ),
74
74
"displayedAttributes" , List .of ("*" ),
75
75
"filterableAttributes" , List .of ("category" , "settings.tags" , "namespace.owner" , "createdAt" , "lastUpdated" , "settings.license.type" , "supportedPlatforms" , "memberNames" , "visibility" ),
76
- "sortableAttributes" , List .of ("stats.views" , "stats.downloads" , "stats.recentDownloads" , "stats.recentViews" , "stats.stars" , "createdAt" , "lastUpdated" , "name" )
76
+ "sortableAttributes" , List .of ("stats.views" , "stats.downloads" , "stats.recentDownloads" , "stats.recentViews" , "stats.stars" , "createdAt" , "lastUpdated" , "name" ),
77
+ "pagination" , Map .of ("maxTotalHits" , 5000 )
77
78
);
78
79
waitForTask (restClient .patch ().uri ("/indexes/" + this .config .meili ().prefix () + PROJECT_INDEX + suffix + "/settings" ).contentType (MediaType .APPLICATION_JSON ).body (settings ).retrieve ().toEntity (Task .class ));
79
80
}
@@ -89,7 +90,8 @@ public void setupVersionIndex(String suffix) {
89
90
"searchableAttributes" , List .of ("name" , "description" , "author" , "platformDependencies" , "channel.name" , "projectId" ),
90
91
"displayedAttributes" , List .of ("*" ),
91
92
"filterableAttributes" , List .of ("platformDependencies" , "channel.name" , "projectId" , "visibility" , "memberNames" ),
92
- "sortableAttributes" , List .of ("createdAt" )
93
+ "sortableAttributes" , List .of ("createdAt" ),
94
+ "pagination" , Map .of ("maxTotalHits" , 5000 )
93
95
);
94
96
waitForTask (restClient .patch ().uri ("/indexes/" + this .config .meili ().prefix () + VERSION_INDEX + suffix + "/settings" ).contentType (MediaType .APPLICATION_JSON ).body (settings ).retrieve ().toEntity (Task .class ));
95
97
}
0 commit comments