Search
Search query text
{"value":"smartwatch","summary":"Single word search"}Page number (1-indexed)
{"value":1,"summary":"First page"}Number of results per page. Maximum value is 250. If not specified, the default page size from SEARCH_DEFAULT_PAGE_SIZE dynamic setting is used.
{"value":20,"summary":"Standard page size"}Sort option value
{"value":"default","summary":"Default sorting"}Default page size for pagination. This value is used when page_size parameter is not provided. The actual page size will be the minimum of this value and the maximum allowed page size (250). If not provided, uses the SEARCH_DEFAULT_PAGE_SIZE dynamic setting value
20Custom Elasticsearch sort value to override or extend the default sorting behavior. When provided, this value is prepended to the selected sorter's Elasticsearch value. Can be a single value or comma-separated list of values. Used for advanced sorting customization in Elasticsearch queries
_scoreProduct extraction strategy class path. Determines how products are extracted from Elasticsearch results, especially when dealing with meta products and sub-products. If not provided, uses the value from SEARCH_PRODUCT_EXTRACTION_STRATEGY dynamic setting, or defaults to DefaultProductExtractionStrategy. Available strategies:
- DefaultProductExtractionStrategy: Returns all matching product IDs
- FirstItemSearchExtractionStrategy: Returns first sub-product from each meta product
- ListableFirstProductExtractionStrategy: Returns listable products when meta products contain sub-products
- MinPriceFirstProductExtractionStrategy: Returns sub-products sorted by minimum price (ascending)
- MaxPriceFirstProductExtractionStrategy: Returns sub-products sorted by maximum price (ascending)
- AllSubProductsExtractionStrategy: Returns all sub-product IDs belonging to meta products
omnishop.search.strategies.DefaultProductExtractionStrategyInventory strategy identifier. Used in shops with multiple inventory systems to determine which price list should be used. When provided, price fields are prefixed with the price list ID (e.g., price_1234 instead of price). If not provided, uses the basket's inventory strategy or defaults to the standard inventory
1234Filter by stock availability (comma-separated values)
{"value":["true"],"summary":"Filter for in-stock products only"}Filter by price range (comma-separated values)
{"value":["0","100"],"summary":"Price range from 0 to 100"}Filter by category identifiers (comma-separated)
{"value":[14],"summary":"Filter by single category"}Filter by collection identifiers (comma-separated)
{"value":[5],"summary":"Filter by single collection"}Filter by seller/data source identifiers (comma-separated)
Filter by basket offer/promotion identifiers (comma-separated)
{"value":[100],"summary":"Filter by single promotion"}Filter by discount amount range (comma-separated min, max)
{"value":["0","50"],"summary":"Discount amount from 0 to 50"}Filter by discount ratio range (comma-separated min, max)
{"value":["0","30"],"summary":"Discount ratio from 0% to 30%"}Filter by category paths (comma-separated)
{"value":["000100010001"],"summary":"Filter by single category path"}Data retrieval mode. When set to "facets", only facet data is returned. When set to "products", only product data is returned. When not specified, both facets and products are returned.
{"value":"facets","summary":"Retrieve only facets"}Possible values: Search results retrieved successfully
Search results with products, facets, and pagination
The search query text used, or null if no search text was provided
smartwatchSearch results retrieved successfully
Last updated
Was this helpful?

