fix: search not work as expected
fix: search not work as expected fix: search not work as expected
This commit is contained in:
parent
b2356d2995
commit
a849b12b4d
1 changed files with 4 additions and 6 deletions
|
|
@ -30,13 +30,11 @@ export class SearchController extends Controller {
|
|||
must_not: {
|
||||
match: { hidden: true },
|
||||
},
|
||||
filter: [
|
||||
{
|
||||
[["match", "prefix"][search.recursive ? 1 : 0]]: {
|
||||
path: search.path?.join("/") || "",
|
||||
},
|
||||
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