Search queries
The search query is ideal for retrieving data from items with multiple shapes in Crystallize. Like browse queries, it provides a fully semantic API where the response structure mirrors the naming of your shapes and components.
The key difference is that search queries retrieve results across all shapes. Since the returned hits can be of different types, you must handle them using inline fragments to structure the response accordingly.
Search query
In this example you find the main differences between the browse query. Here you see that you search across multiple shapes and that we do inline fragments to manage the search results.
For details on faceting, filtering, sorting and pagination. See the browse queries for details. The mechanisms there are the same.
Fetching snippet...