import { ShopifyPredictiveSearchResult } from '@daffodil/driver/shopify'
Returned by the predictiveSearch query to power type-ahead search experiences. Includes matching Product, Collection, Page, and Article objects, along with query suggestions that help customers refine their search.
interface ShopifyPredictiveSearchResult {
__typename: "PredictiveSearchResult"
articles: ShopifyArticle[]
collections: ShopifyCollection[]
pages: ShopifyPage[]
products: ShopifyProduct[]
queries: ShopifySearchQuerySuggestion[]
}
__typename "PredictiveSearchResult" |
|---|
articles ShopifyArticle[] |
|---|
The articles that match the search query. |
collections ShopifyCollection[] |
|---|
The articles that match the search query. |
pages ShopifyPage[] |
|---|
The pages that match the search query. |
products ShopifyProduct[] |
|---|
The products that match the search query. |
queries ShopifySearchQuerySuggestion[] |
|---|
The query suggestions that are relevant to the search query. |