This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Searches promotions using WQL - Wix Query Language with support for free-text search and aggregations.
Use this method for complex queries that include free-text search, aggregations, or when you need faceted search results. For simple filtering, use Query Promotions instead.
Learn more about the differences between Query and Search methods.
| Property | Capabilities | Filters |
|---|---|---|
tags.privateTags.tagIds | Search: ✗ Aggregate: ✓ Sort: ASC, DESC | $hasAll, $hasSome |
tags.publicTags.tagIds | Search: ✗ Aggregate: ✓ Sort: ASC, DESC | $hasAll, $hasSome |
createdDate | Search: ✗ Aggregate: ✓ Sort: ASC, DESC | $eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte |
id | Search: ✗ Aggregate: ✓ Sort: ASC, DESC | $eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte |
updatedDate | Search: ✗ Aggregate: ✓ Sort: ASC, DESC | $eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte |
enabled | Search: ✗ Aggregate: ✓ Sort: ASC, DESC | $eq, $ne, $exists, $in, $any |
name | Search: ✓ Aggregate: ✗ Sort: ✗ |
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.