update: filter after instead
This commit is contained in:
parent
c3b176fd32
commit
a36c73dedf
1 changed files with 5 additions and 5 deletions
|
|
@ -30,11 +30,11 @@ export class SearchController extends Controller {
|
|||
must_not: {
|
||||
match: { hidden: true },
|
||||
},
|
||||
filter: {
|
||||
[["match", "prefix"][search.recursive ? 1 : 0]]: {
|
||||
path: `${search.path?.join("/")}/`.replace(/^\//, "") || "",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
post_filter: {
|
||||
[["match", "prefix"][search.recursive ? 1 : 0]]: {
|
||||
path: `${search.path?.join("/")}/`.replace(/^\//, "") || "",
|
||||
},
|
||||
},
|
||||
size: 10000,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue