ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rishi Solanki <rishisolan...@gmail.com>
Subject Re: Excluding with search constraint.
Date Thu, 28 Feb 2019 13:42:28 GMT
Can you please share the search context and query conditions passed in
query. You can obtain it from ProductSearch class.

--
Rishi Solanki
Sr Manager, Enterprise Software Development
HotWax Systems Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxsystems.com
www.hotwax.co


On Thu, Feb 28, 2019 at 4:37 PM Ingo Wolfmayr <ingo.wolfmayr@wolfix.at>
wrote:

> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message