Build Advanced Search Forms

The Builder components let you provide an advanced search form for the user. Based on settings this will allow him to interactively add filters to the query or use a form of preset options.


The core component of the Builder is the form tag. In the body of the form tag, you can provide a number of optional tags that will determine how the various components of the query are rendered and displayed to ther user:

<builder:form query="${query}"
              mode="preset" showOperators="false">
    <builder:query label="Query" />
    <builder:text when="title,description"/>
    <builder:capsule when="category"/>
    <builder:range when="pubdate" date="true" jsFormat="dd/mm/yy" javaFormat="dd/MM/yyyy"/>

The builder tags must be used within <block:searchHeader> tags.