Hi guys, I want to create a search query where I ...
# getting-started
e
Hi guys, I want to create a search query where I have the chart name and a property url and it returns an urn. The url is unique but searching the chart name has many results. Is there any way to filter by the property url? This is the query i'm working with, it doesn't return anything but without the filter it shows the url in the results
Copy code
query searchDashboardWithFilters{
  search(input: { 
    type: DASHBOARD,
    query: "\"2A. DS VERTICAL OVERALL\"",
    start: 0,
    count: 100,
		orFilters: {
      and: {
        field: "properties.externalUrl", values: "<url here>"
      }
    }
  }) {
  start
  count
  total
  searchResults {
    entity {
      urn
      type
      ... on Dashboard {
        browsePaths {
          path
        }
      	dashboardId
      	embed {
      	  renderUrl
      	}
        properties {
          name
          externalUrl
          customProperties {
            key
            value
          }
        }
        platform {
          name
          urn
        }
        container {
          urn
        }
      }
    }
  }
}
}
r
@green-football-43791 might be able to speak to this!
g
Hey @enough-continent-10777 - I think i can help here. you probably want to look at https://datahubproject.io/docs/how/search/ and how we search by custom property. right now it cannot be done through structured filters as you were doing but can be done by entering a special search in the query
❤️ 1
let me know if you’d like to discuss this further!
e
thank you this is good!