Hi there, I'm querying `SearchAcrossEntities` endp...
# troubleshoot
f
Hi there, I'm querying
SearchAcrossEntities
endpoint trying to return only results for
DASHBOARDS
and
DATASETS
. However, when I submit the following query (see ๐Ÿงต) with both types, I only get back
DATASETS
, even though I know there are
DASHBOARDS
that match my search query. Could there be a bug in the API or am I missing something? ๐Ÿค”
Copy code
query {searchAcrossEntities(input:  
    {
      types: [DASHBOARD, DATASET]
      query: "account",
      start: 0,
      count: 100,
      filters: []
    }) {
    start
    count
    total
    searchResults {
      entity {
        type
        ... on Dashboard {
					platform {
            name
          }
          properties {
            name
            description
            externalUrl
            created {
                time
                actor
              }
            lastRefreshed
          }
          ownership {
            owners {
              owner {
                ... on CorpUser {
                  username
                }
                ... on CorpGroup {
                  name
                }
              }
            }
          }
        }
        ... on Dataset {
          platform {
            name
          }
          properties {
            name
            description
          }
          ownership {
            owners {
              owner {
                ... on CorpUser {
                  username
                }
                ... on CorpGroup {
                  name
                }
              }
            }
          }
        }
      }
    }
  }
}
When I query only for
DASHBOARD
(i.e.
types: [DASHBOARD]
), I get many results, so I know they exist.
m
do you see more if you change to
count: 1000
f
Yes, I've changed the count to 3000 (more than the number of records), and still no dashboards are returned in the response.
Nevermind, I am seeing both now ๐Ÿค” Not sure what was going on, but at least it's working ๐Ÿ™‚