Skip to content

Commit c3addb4

Browse files
authoredMar 25, 2025··
feat(specs): add CT Query predicate property (#4654)
1 parent 3fb7b4e commit c3addb4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
 

‎specs/ingestion/common/schemas/source.yml

+8
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ SourceCommercetools:
135135
default: true
136136
description: |
137137
Whether a fallback value is stored in the Algolia record if there's no inventory information about the product.
138+
productQueryPredicate:
139+
type: string
140+
description: |
141+
Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
138142
customFields:
139143
$ref: '#/CommercetoolsCustomFields'
140144
required:
@@ -405,6 +409,10 @@ SourceUpdateCommercetools:
405409
type: boolean
406410
description: |
407411
Whether a fallback value is stored in the Algolia record if there's no inventory information about the product.
412+
productQueryPredicate:
413+
type: string
414+
description: |
415+
Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
408416
customFields:
409417
$ref: '#/CommercetoolsCustomFields'
410418

‎tests/CTS/requests/ingestion/createSource.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"de"
1313
],
1414
"url": "http://commercetools.com",
15-
"projectKey": "keyID"
15+
"projectKey": "keyID",
16+
"productQueryPredicate": "masterVariant(attributes(name=\"Brand\" and value=\"Algolia\"))"
1617
},
1718
"authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
1819
},
@@ -30,7 +31,8 @@
3031
"de"
3132
],
3233
"url": "http://commercetools.com",
33-
"projectKey": "keyID"
34+
"projectKey": "keyID",
35+
"productQueryPredicate": "masterVariant(attributes(name=\"Brand\" and value=\"Algolia\"))"
3436
},
3537
"authenticationID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f"
3638
}

0 commit comments

Comments
 (0)
Please sign in to comment.