mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update recommendedBy query
This commit is contained in:
parent
a8df439297
commit
533a4ae65c
2 changed files with 4 additions and 4 deletions
|
|
@ -189,10 +189,10 @@ const appendIdsFilter = (body: SearchBody, ids: string[]): void => {
|
|||
const appendRecommendedBy = (body: SearchBody, recommendedBy: string): void => {
|
||||
body.query.bool.must.push({
|
||||
nested: {
|
||||
path: 'recommendedBy',
|
||||
path: 'recommendations',
|
||||
query: {
|
||||
term: {
|
||||
'recommendedBy.name': recommendedBy,
|
||||
'recommendations.name': recommendedBy,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -53,10 +53,10 @@ export interface SearchBody {
|
|||
}
|
||||
| {
|
||||
nested: {
|
||||
path: 'recommendedBy'
|
||||
path: 'recommendations'
|
||||
query: {
|
||||
term: {
|
||||
'recommendedBy.name': string
|
||||
'recommendations.name': string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue