Custom Elastic response, Base product only?

The Elastic ProductDocument in the acelerator have the field IsBaseProduct, and am simply trying to add a toggle to only query base products, But if i add

			// Add custom filter to only show base products
			allQueries.Add(qc.Bool(b => b.Should(bs => bs.Term(t => t.IsBaseProduct, true))));

To the QueryBuilder, I dont get any results, What am i doing wrong?

Litium version: 7.3

The code worked, the index was wrong :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.