Using Faceted Search

Release 1.3 - ...

The iXperion Faceted Search module is very easy to use. After installing, everything is already preconfigured for you to get a jumpstart.

To implement a new Search page, you simply call the main Faceted Search Smartlet, and (optionally) one or more of the helper Smartlets:

Smartsite SXML CopyCode image Copy Code
{sml_facetedsearch()}

Simplest FacetedSearch

This call is enough to get a working search page. However, no facets will be shown. To show some facets, place a call to the sml_facetedsearch_facet() Smartlet for each of the facets you wish to show:

Smartsite SXML CopyCode image Copy Code
{sml_facetedsearch()}
{sml_facetedsearch_facet(facet=author)}
{sml_facetedsearch_facet(facet=channel)}
{sml_facetedsearch_facet(facet=contenttype)}

Combined with a small piece of HTML layout, we get this:

Smartsite SXML CopyCode image Copy Code
<div id="fs-columns">
 <div class="right">
  {sml_facetedsearch(box=none)}
 </div>
 <div class="left">
  {sml_facetedsearch_facet(facet=author)}
  {sml_facetedsearch_facet(facet=channel)}
  {sml_facetedsearch_facet(facet=contenttype)}
 </div>
</div>
 
<se:placeholder.addcss>
 #fs-columns .left {
  float: left;
  width: 150px;
  margin-right: 10px;
 }
 #fs-columns .left .sml_box{
  margin-bottom: 10px;
 }
 #fs-columns .right{
  float: right;
  width: 500px;
 }
</se:placeholder.addcss>

Simple Faceted Search

Each facet representation is completely independent of all others, but interacts with the main Smartlet.