Problem
You need to answer transactional questions—such as “is this provider in-network for cardiology?”—without denormalizing data. Traversed properties let the Search API expose vetted fields from related resources so you can filter precisely while staying within a single request.Prerequisites
- A partition where the traversed property is configured as filterable. See Traversed properties overview.
- The traversed path prefixed with
@<traversed-property-name>.@<other-collection-key>
in your partition schema. See Traversed property notation for more information on traversed property paths. - Workspace credentials that can call the Search API.
Steps
1. Shape the filter for the transactional question
Map the user question to the traversed field. For example, if cardiology services are exposed as@hasDiscipline.@service.code
, an equality filter answers “does this clinic provide cardiology?”: