update: filter after instead

This commit is contained in:
Methapon2001 2024-01-15 11:06:58 +07:00
parent c3b176fd32
commit a36c73dedf
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -30,13 +30,13 @@ export class SearchController extends Controller {
must_not: { must_not: {
match: { hidden: true }, match: { hidden: true },
}, },
filter: { },
},
post_filter: {
[["match", "prefix"][search.recursive ? 1 : 0]]: { [["match", "prefix"][search.recursive ? 1 : 0]]: {
path: `${search.path?.join("/")}/`.replace(/^\//, "") || "", path: `${search.path?.join("/")}/`.replace(/^\//, "") || "",
}, },
}, },
},
},
size: 10000, size: 10000,
}); });