We have a document xxx:article with xxx:image as a property. It’s a list property with CompanyImageSet in it. In the most cases the article has a xxx:image with one or more CompanyImageSet in it and it’s not important for the search whether the xxx:image property is empty or not.
We search with:
HstQuery hstQuery = builder.ofTypes(xxx:article).orderByDescending(xxx:priority).orderByDescending(xxx:date).limit(limit).build();
Now we want to search in this query only for xxx:article with one or more images in it. How is this possible? We have try it with a where condition in the query and by adding a filter but both queries won’t work for us. Can someone help?