sml_FacetedSearch smartlet
Release 1.3 - ...
The user interface for Faceted Search is created by a number of interacting smartlets. The main smartlet, sml_FacetedSearch, handles the actual searching, and filtering and paging of the search results. The other smartlets are:
- sml_FacetedSearch_Facet
Displays possible values for a given facet. - sml_FacetedSearch_Filters
Displays the currently active filters. - sml_FacetedSearch_Persist
Handles loading and saving of searches.
The Faceted Search smartlet supports the following public properties:
Name | Type | Default | Description |
---|---|---|---|
searchterm | string | The search string, including operators. | |
filters | JSON | The filters that are applied to the search results. | |
extractedterms | string | The terms (words) that were extracted from the searchterm property, separated by comma's. | |
options | string |
String of comma-separated name=value pairs. Do not use any whitespace in the options property. The following options are supported (defaults are bold):
| |
page | int | 1 | The current page of results. |
pagesize | int | 10 | The number of results per page. |
queryxml | int | The item number of the query xml used for this faceted search instance. | |
queryxmlname | string | Defines the query xml used for this faceted search instance by name. The query xml must exist in the folder /Configuration/Query Definition XMLs/ within the smartlet folder. | |
searchprofile | string | Determines the searchprofile to use. As of release 1.3 only supports "Search within title". | |
searchwithin | int | 0 | Set to 1 to search within the current set of results. |
orderby | string | searchrank DESC | Determines how the results are ordered. |
verbose | int | 0 | Set to 1 to show debug information. |
Other smartlet properties are only used internally:
Name | Type | Description |
---|---|---|
htmlfilters | string | HTML for the filters display that is returned to the client. |
htmlnav | string | HTML for the navigation display that is returned to the client. |
htmlresult | string | HTML for the search results that is returned to the client. |
queryinfo | JSON | Object that defines all aspects of the current search. Stored in cookie and used for persistance. |
rowcount | int | Number of results. |
ratingscale | int | The absolute rating of the highest rated result. Used to calculate relative ratings. |
action | string | Command used for navigation and persistance. |
searchexpression | string | The previous search definition. Used for search within. |
persistkey | string | Name or index for persistance. |
persistproperty | string | UserProfileProperty name used for query persistance. |