flexiblesearch builder
Generates a valid FSQ so you don't have to remember the {pk} requirement, how enum filters actually work, or the catalog version subquery syntax.
output
// fill in the form and click build query
The parts that trip people up
{pk}is not optional —SELECT *doesn't exist in FlexibleSearch- Enum fields need a JOIN —
WHERE {approvalStatus} = 'approved'will silently return wrong results; you need to join to{ArticleApprovalStatus} - UNION needs double braces on both sides:
{{ SELECT ... }} UNION {{ SELECT ... }} - Collection and Map attributes can't go in a WHERE clause — write a Groovy script for those
{Product!}includes subtypes,{Product}doesn't — you usually want{Product!}{p.name:o}forces a LEFT OUTER JOIN on the localized table — needed when the field can be null