Release 1.3 - ...

<query> element

Element which defines the masterquery itself.

Local instance vipers should be used to resolve the different query elements dynamically. Some of these viper calls must also provide a proper default, such as {this.joinclause()}, {this.whereclause()} and {this.searchquery()}.

Within the example below, the {this.searchquery()} viper call provides a default which will return all records from contents. This default is used when the user didn't enter a search term.

When returning all records (from e.g. contents), the facets will display their information based on all records as well. This makes it possible to get meta information on all records, e.g. how many items are there for each contenttype, how are the items distributed among the different authors, etc.

If you want Faceted Search to display 'No Results' when there's no search term entered, just append " WHERE Nr=-1" to the default of the {this.searchquery()} local instance viper call.

Expand image Example

Expand image Attributes

Expand image Parent element

Expand image Child elements

Expand image Local Vipers