mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
update query to fix domain asset (#20467)
This commit is contained in:
parent
e6b7b89f86
commit
e480e6ddf7
@ -145,7 +145,24 @@ export const getQueryFilterToExcludeDomainTerms = (
|
||||
export const getQueryFilterForDomain = (domainFqn: string) => ({
|
||||
query: {
|
||||
bool: {
|
||||
must: [{ prefix: { 'domain.fullyQualifiedName': domainFqn } }],
|
||||
must: [
|
||||
{
|
||||
bool: {
|
||||
should: [
|
||||
{
|
||||
term: {
|
||||
'domain.fullyQualifiedName': domainFqn,
|
||||
},
|
||||
},
|
||||
{
|
||||
prefix: {
|
||||
'domain.fullyQualifiedName': `${domainFqn}.`,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
must_not: [
|
||||
{
|
||||
term: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user