refactor: max number of record that return

This commit is contained in:
Methapon2001 2023-11-27 13:46:00 +07:00
parent eed1a863d3
commit 9b2bff6ba5
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
4 changed files with 9 additions and 2 deletions

View file

@ -128,6 +128,7 @@ export class FileController extends Controller {
pathname: `${cabinetName}/${drawerName}/${folderName}/`,
},
},
size: 10000,
});
const records = search.hits.hits

View file

@ -132,6 +132,7 @@ export class SubFolderFileController extends Controller {
pathname: `${cabinetName}/${drawerName}/${folderName}/${subFolderName}`,
},
},
size: 10000,
});
const records = search.hits.hits

View file

@ -549,6 +549,7 @@ export function RegisterRoutes(app: Router) {
});
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.post('/search',
authenticateMiddleware([{"bearerAuth":[]}]),
...(fetchMiddlewares<RequestHandler>(SearchController)),
...(fetchMiddlewares<RequestHandler>(SearchController.prototype.searchFile)),

View file

@ -1257,7 +1257,7 @@
"operationId": "SearchFile",
"responses": {
"200": {
"description": "",
"description": "สำเร็จ",
"content": {
"application/json": {
"schema": {
@ -1273,7 +1273,11 @@
"tags": [
"Search"
],
"security": [],
"security": [
{
"bearerAuth": []
}
],
"parameters": [],
"requestBody": {
"required": true,