Search within Facet Filters

The Search Within Facet tag (<facet:search>) lets you search your facet for the filter you would like.

To use this tag, you must include a reference to the Labs module in your Maven project’s pom.xml file:

<dependency>
    <groupId>twigkit</groupId>
    <artifactId>twigkit.web.components.lab</artifactId>
    <version>${project.parent.version}</version>
</dependency>

Usage

The search within facet renders like a normal facet tag showing your filters, count and the ability to show more.

<search:facetList response="${response}" facet-names="current_products">
    <facet:search facet="${facet}" query="${query}" platformConfig="platforms.gsa" select="click" show="5" showMore="5"/>
</search:facetList>

Search within facet

When you click show more, you see more results and you also have the ability to search the filters for a specific filter you would like.

Search Within Account

Click model

<search:facetList response="${response}" facet-names="current_products">
    <facet:search facet="${facet}" query="${query}" platformConfig="platforms.gsa" select="click" show="5" showMore="5"/>
</search:facetList>

Search within facet click model

Checkbox model

<search:facetList response="${response}" facet-names="current_products">
    <facet:search facet="${facet}" query="${query}" platformConfig="platforms.gsa" select="checkbox" show="5" showMore="5"/>
</search:facetList>

Search within facet checkbox model