Skip to content

Commit

Permalink
fix(docs): Add correct usage of orFilters in search API docs (#11082)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay <[email protected]>
  • Loading branch information
gabe-lyons and jayacryl authored Aug 5, 2024
1 parent 28f1c92 commit e4e77c3
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions docs/how/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,42 @@ The same GraphQL API that powers the Search UI can be used
for integrations and programmatic use-cases.

```
# Example query
{
searchAcrossEntities(
input: {types: [], query: "*", start: 0, count: 10, filters: [{field: "fieldTags", value: "urn:li:tag:Dimension"}]}
# Example query - search for datasets matching the example_query_text who have the Dimension tag applied to a schema field and are from the data platform looker
query searchEntities {
search(
input: {
type: DATASET,
query: "example_query_text",
orFilters: [
{
and: [
{
field: "fieldTags",
values: ["urn:li:tag:Dimension"]
},
{
field: "platform",
values: ["urn:li:dataPlatform:looker"]
}
]
}
],
start: 0,
count: 10
}
) {
start
count
total
searchResults {
entity {
urn
type
... on Dataset {
urn
type
name
platform {
name
}
name
}
}
}
Expand Down

0 comments on commit e4e77c3

Please sign in to comment.