Hi everybody,

I am trying to exclude products from search result by using a search 
constraint. (LayeredNavigation.groovy)

ProductSearchSession.searchAddConstraint(new 
ProductSearch.FeatureConstraint("21952", true), session); // 
ProductSearch.FeatureConstraint(productFeatureId, exclude)

It results in: "FieldName mainProductId not found for entity: 
DynamicViewEntity". If I set "exclude" to false it display the products as 
expected. But I want to exclude them.

Do I miss something?

Best regards,
Ingo

Reply via email to