Product DocsMenu

Configuring a Computed Facet With the .NET Interface Editor

Using the Coveo .NET Front-End Interface Editor, a Coveo administrator can configure a computed facet when creating a new facet, or as described in the following procedure, modifying an existing facet (see Computed Facets).

To configure a computed facet with the .NET Interface Editor

  1. Access the Coveo .NET Front-End Interface Editor (see Opening the .NET Interface Editor).

  2. Select the Search Interfaces tab.

  3. On the menu bar:

    1. In the Current Interface drop-down list, select the search interface that you want to modify.

    2. Click the Features menu.

  4. In the navigation panel on the left, click Facets and Related Results.

  5. In the right panel, in the list under Facets and Related Results, click the existing facet that you want to modify.

  6. For each computed value that you want to add to the facet, next to Computed Fields, click Add New .

    New parameters appear below Computed Fields.

    1. In the Field drop-down box, select the field whose values you want to use as the source for the calculation.

    2. In the Operation drop-down box, select the mathematical operation to perform on the field values (Sum, Average, Minimum, or Maximum).

    3. In the Result Display Location drop-down box, select where the computed value appears in relation with the facet item (Beside the Caption or Under the Caption).

    4. In the Result Prefix and Result Suffix boxes, if needed, respectively type the desired prefix and suffix to appear before and after the computed values.

      For a multi-lingual search interface, click next to each box to open the dialog box where you can type the translated prefix or suffix for each supported language.

    5. In the Format drop-down box, select the numerical format in which the computed value appears in the facet. The available options are:

      • Currency: Presents the value as an integer (no decimal digits). Separators appear when the value exceeds groups of three digits (for example: $2,104,542). The currency symbol ($) automatically appears before the value.

      • Numeric (Integer): Presents the value as an integer (no decimal digits). Separators appear when the value exceeds groups of three digits (for example: 6,542).

      • Numeric (Floating point): Presents the value with two decimal digits and separators appear when the value exceeds groups of three digits (for example: 6,542.19).

      • Percentage: Presents the value with two decimal digits and the percent symbol (%) automatically appears after the value (for example: 92.03 %).

      • Custom: When you select Custom, another box appears where you can enter the desired .NET numeric format string.

        Note: Refer to the Standard Numeric Format Strings MSDN documentation for details on the .NET numeric format string.

    Example: You could create a Document Average Size facet in which you see the average file size and the average number of pages for each document type as shown in the following figures.

    Note: When it is not possible to calculate a value, like the average number of pages for HTML documents, the value and its prefix and suffix simply do not appear.

  7. When you include more than one computed value, click Up or Down on the corresponding line to set in which order the computed values appear.

  8. When you want to remove a computed value, click Delete on the corresponding line.

  9. Click OK to complete the custom facet modification.

  10. Using a browser, open or reload the search interface to verify that the facet includes the computed values you configured.

People who viewed this topic also viewed