Designing Faceted Search: Getting the basics right (part 2)
Join the DZone community and get the full member experience.Join For Free
in our last post we looked at some of the fundamental issues in designing faceted search such as layout (e.g. where to place the faceted navigation menus) and state (e.g. whether they should be open or closed by default). in this post, we continue the mini-series with a review of the various formats for displaying facets and the key principles for choosing between them.
2. fundamental principles
2.1 facets and search
before we get into the detail of display formats, we should first establish some basic terminology.
are essentially independent properties or
by which we can classify an object. for example, a book might be
classified using an author facet, a subject facet, a date facet, and so
enables users to intuitively explore
information spaces by progressively refining their choices in each
dimension. so for example, we could explore a collection of books by
selecting a specific author, subject, or date range, and so on.
selections are made by applying facet values which update the
i.e. the user’s current location in the information space. the
navigational context then defines the set of records returned for a
given query, and the facet values that are applicable to that result
set. this leads us to our first principle:
display only currently available facet values
by observing this principle, we provide a search experience that guides users toward meaningful navigational choices and avoids the possibility of zero results. (note that there are exceptions to this such as the use of smart dead ends , which we’ll discuss in a later post).
2.2 facet semantics
facets can be either single-select or multi-select . in the former case, the facet values are assumed to be mutually exclusive, i.e. only one may be applied at any given time. for example, a given copy of book may be assumed to have only one location: if it is in library x, then by definition it cannot be simultaneously in libraries y or z. this facet is therefore single-select. conversely, some facets represent values which are *not* mutually exclusive, i.e. more than one may apply at any given time. for example, a given book may have more than one author: if it is co-edited by professor x, then it could also be simultaneously co-edited by professors y and z. this facet is therefore multi-select.
multi-select facets can either be multi-select or or multi-select and . in the first case (or), we assume that the values are combined disjunctively , e.g. a given book may have been published in either 2001, 2002 or 2003. in the second case (and), we assume that the values are combined conjunctively, e.g. a given book may have been co-authored by professors x, y and z. multi-select and tends to be somewhat rarer in faceted search, as it implies that selected facet values only make sense when applied in their totality. a typical example is purchasing a car: if the user specifies that they are looking for features a, b and c, the assumption is that they want all of these features to be present on every record (e.g. air con and sat nav and sunroof), rather than just a subset of them (e.g. air con or sat nav or sunroof). strictly speaking, if we accept the definition of facets as comprising mutually exclusive attributes, then a multi-select and facet is actually a collection of individual boolean facets that are grouped together for pragmatic reasons.
2.3 facet states and behaviours
by convention, values applied across different facets are normally applied conjunctively (e.g. author a and subject b and date c) whereas values applied within a given facet are normally applied disjunctively (date x or date y or date z). facet values can be removed as well as applied. there are various ways to achieve this, but the principle is the same: the user deselects an applied value and the navigational context is updated accordingly.
facets change their state and available values to reflect the current navigational context. for example, if the user selects a particular location, then the other values for location are no longer applicable to the current result set (since this facet is single-select). in some faceted search applications, this facet would be ‘refined away’, i.e. removed from display since there are no further choices to be applied. (of course, if the user changes the navigational context by removing the applied value, the facet should re-appear.)
facets can also enter a kind of ‘passive’ state indirectly. for example, the values applied in facet a may result in the available values in facet b being reduced to a singleton. in our library example, if we select books authored by professor smith, we may discover that the only applicable date is 2002. applying that single value would not change the navigational context as it applies equally to all records in the current result set. in some faceted search applications, facets in this state are also removed from display.
3. displaying facet values
we discussed above how facets are essentially independent properties
by which we can classify an object. conceptually, each of these facets
is based on an underlying
, e.g. in our book collection, the values for author could be stored as text (i.e.
), the values for subject could be one or more terms from a
, the values for date could be stored as
and so on. such decisions shape the underlying architecture of faceted
search applications. but how should such facets be displayed to the end
user, and what kind of interactivity should be provided? ideally, the
display format should reflect and
communicate the nature of the underlying data
. this leads us to our second principle:
match the display format to the semantics of the facet values.
facets can be used to express a wide variety of data types, and consequently there is a wide variety of available display formats. in the following section, we examine some of the main options.
hyperlinks are probably the most common technique for representing facet values. they provide a simple and direct mechanism for representing textual values, and afford interaction through direct selection (e.g. via a mouse click). the example below from food network shows a typical faceted navigation menu, with the facets arranged in a vertical stack configuration. each of the ten facets contains values that are essentially textual in nature, so as such are ideal for display using hyperlinks.
one of the reasons for the popularity of hyperlinks is their simple interaction model: the user selects a value, and the system responds by applying that value as a refinement to the current navigational context. so in the example above, if the user selects content type=recipe, the result set is updated to include only recipes (and the breadbox is updated to show this selection). likewise, if the user selects course=main dish, the results are updated to include only recipes for main dishes.
this simple example also illustrates the one of the design behaviours mentioned above: single select facets are ‘refined away’ after being applied. for example, once a value for content type has been applied, the facet disappears. likewise, once a value for course has been selected, the facet disappears. the end result is that the faceted menu shrinks as further refinements are applied.
note that multi-select facets require a different behaviour: in this case, the assumption is that more than one value from each facet may be simultaneously applied, so the individual facets need to remain visible for further selections to be made by the user.
this raises an interesting question: if food network did want to make their existing facets multi-selectable (and there is little inherent in their semantics to preclude such a possibility), could they continue to use the hyperlink format and simply continue to display each facet following a selection? there is no technical reason why this cannot be done – in fact, we see such an example at ncsu libraries :
in this example, the user can select multiple subjects, genres, formats, and so on, and these are added to the navigational context each time.
but there are two reasons why hyperlinks are not the ideal display format for multi-select facets. first, there is the issue that they are by convention typically used to display single-select facet values, and offer a strong affordance of single-select behaviour. secondly, there exists an alternative display mechanism that is specifically designed to support multiple selections from a number of options: the checkbox.
checkboxes are an ideal format for the display of multi-select facets. an example of their use of can be found at many sites, including ebay :
checkboxes support multiple selection and the communication of navigational state through inline breadcrumbs . in this example, the user can select multiple models (e.g. golf or jetta) and multiple model years (2009 or 2008 or 2007) and these choices are displayed inline as selected checkboxes.
a discussion of the negative consequences of using hyperlinks and checkboxes inappropriately can be found at uxmatters . however, this article itself conflates the issue of facet semantics (single-select vs. multi-select) with that of display mechanism (hyperlinks vs. checkboxes). although there are dependencies between these two issues, they are in fact separate: the first reflects the conceptual data model, the second the desired user experience. a more informed design approach would recognize this distinction.
3.3 range sliders
in the examples above, the facet values are essentially categorical in nature, i.e. qualitative data organised on a nominal or ordinal scale. but facets often need to display quantitative data, such as price ranges, product sizes, date ranges and so on. in such cases a range slider is often a more suitable display mechanism. an example of their use can be found at molecular’s wine store :
this example shows the use of sliders for quantitative data such as of price, expert score, user rating and for interval data such as vintage. note also that this example uses single ended sliders for the first three but double-ended for the latter. the rationale here is that most users would only be interested a maximum value for price, or a minimum value for expert score and user rating. conversely, they may be interested in both a start date and an end date for a particular range of vintages (using both a maximum and a minimum).
this example also illustrates how the basic slider can be overlaid with supplementary information such as a histogram showing the distribution of record counts across the range. this helps the user understand the overall information space by providing them with a global view of the ‘landscape’ within each facet, guiding them toward more meaningful and productive selections.
3.4 input boxes
one of the disadvantages of sliders is that that they offer a relatively coarse level of control over the values. in the molecular example, it may be relatively easy to specify a precise pair of dates, as the entire scale spans just 20 years or so (1986 to 2006). however, quantitative values can of course extend over much greater intervals, in which case sliders start to become cumbersome and awkward to use accurately. consequently, sliders often appear paired with input boxes, which allow the direct entry of arbitrary values along a quantitative range. an example of this can be seen at glimpse.com , in which a query for ‘shoes’ returns results across a relatively wide price range:
with a range as wide as $15 to $470, specifying a precise value much easier using the input boxes than using the slider.
sometimes it is appropriate to transform the semantics of one data type into another. for example, quantitative data can be transformed into an interval scale by subdividing the range into a sequence of smaller ranges and giving each a label. this is the approach taken by amazon in their treatment of price ranges:
note that the intervals need not be of equal size: in amazon’s case, they divide the overall range into five ‘bins’ of differing size, in what may be a strategy to smooth the distribution of record counts within each range (we’ll discuss the issue of displaying bin counts in a later post). alternatively, this may simply be a reflection of the price points found to be uppermost in shopper’s minds when they browse these particular products.
3.5 colour pickers
in the above examples we’ve discussed how the choice of display format is shaped by the semantics of the underlying data and the user experience we wish to provide. in this respect, colour pickers are perhaps the ultimate custom control: they are designed exclusively to represent the visual dimension of colour. however, there are various ways in which this can be executed. littlewoods , for example, displays a colour swatch with associated text labels, and shows only values that are specific to the current result set:
artist rising, by contrast, uses a generic colour picker, offering a choice across a continuous colour spectrum:
although the user has great flexibility in selecting a precise colour value, the corollary is that it is easy for the user to select an illegal value (i.e. one which is not available within the current result set). in this respect, this approach violates principle 1 above.
an alternative to the colour picker is to simply use text labels for each value, and this approach is surprisingly common (being widely used by both amazon and ebay). the challenge is, of course, to select textual labels that are going to be meaningful to the end user and also faithfully represent the appearance of the item itself. inevitably, once the range extends beyond basic primary and secondary colours, such mappings start to become increasingly tenuous.
3.6 tag clouds
a decade or so ago, there was no such thing as a tag cloud – at least, not outside of a few research labs and data visualization projects. then along came flickr , delicious and a host of other online community sites with vast repositories of user-generated and user-tagged content. tag clouds, with their ability to represent measures such as tag frequency and popularity in a visually appealing manner, rapidly became the standard technique for displaying and exploring such content. soon, their use was extended to include unstructured content, displaying clouds of terms extracted from text documents.
a decade on, we seem to have come full circle. perhaps victims of their own popularity, tag clouds are becoming an increasingly rare part of the faceted search experience. one of the few remaining examples can be found at artist rising , which displays a tag cloud as a dialog overlay within a horizontal faceted menu:
as tags are selected, they are added to the breadbox alongside other refinements. (unusually, the tag cloud in this implementation appears to allow only a single value to be applied, which rather weakens their essential value.)
a somewhat different treatment can be found at pc authority , which uses tag clouds to present terms extracted from unstructured content (i.e. text documents). these are displayed in a separate container which is disconnected (conceptually and physically) from the left hand faceted navigation menu. as tags are selected, they are added to the breadbox alongside other refinements:
unlike artist rising, the tag cloud in this implementation supports multiple refinements, updating its own contents on each iteration.
3.7 data visualizations
in each of the above examples the records have been considered as unique entities, i.e. the goal of the search experience is locating and then viewing one or more individual records. in this context, the role of the facet values is primarily to facilitate that process; to smooth the journey from initial query to product record. but an increasing number of applications are concerned with understanding patterns inherent in the collection at a much higher level, where the focus is not on locating individual records but on understanding patterns of distribution and occurrence at an aggregate level. in these applications, the facets play a much more central role in the discovery experience, with the focus shifting from findablity to broader tasks such as analysis, sensemaking and discovery-oriented problem solving.
applications such as this are designed to aggregate, organize, and summarize data from a variety of quantitative and qualitative sources, using data visualizations to communicate key metrics, patterns, and overall status . an example of such a visualization could be found at newssift (illustrated below, but since closed), in which pie charts were used to communicate the distribution of article sources and associated sentiment:
in common with hyperlinks, these visualizations provide a simple interaction model: the user selects a value (e.g. by mouse click), and the system responds by applying that value as a refinement to the current navigational context. but more importantly, the facets provide an instant overview of the aggregate distribution for each set of values: we can see at a glance, for example, that the majority of sentiment is positive, and that the majority of articles are sourced from online news. of course, this insight could also be facilitated by other display formats, but a well-chosen visualization will do this much more effectively than the more traditional display formats discussed above. (as an aside, the choice of pie charts here is somewhat questionable , but the principle of using visualizations to communicate key metrics is the central point.)
another common use of data visualisation in faceted search is to communicate patterns in geospatial data. an example of this can be found at wits (the worldwide incidents tracking system), which uses various forms of visualization to display terrorist incidents overlaid on a map of the world:
visualizations such as this allow users to perceive spatial patterns in record distribution and explore relationships between particular facets (rendered as hyperlinks in the upper panel) and aggregate distributions across the map. however, the interaction model in this implementation is somewhat different to newssift, in that selecting an item on the map (e.g. a cluster in the rendering above) appears to centre and zoom the map on that region, rather than applying the selected item as a refinement. in this respect, the visualization is not behaving as a facet in the strict sense, but it nonetheless allows the end user to productively explore patterns at the aggregate record level.
over the last few weeks we’ve looked at some of fundamental design issues in faceted search, such as layout (e.g. where to place the faceted navigation menus) and state (e.g. whether they should be open or closed by default). in this article, we’ve complemented that with a review of the many formats for displaying facets and the key principles for choosing between them. in our next post, we’ll round out this mini-series with a look some of the remaining design fundamentals including display scalability (i.e. techniques for managing long lists of facet values).
Published at DZone with permission of Tony Russell-rose, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.