Skip to main content

Default Filters

In this section, you will modify the default filters.

The Mint application includes buttons that allow the user to filter results.

Default Filters

Multiple filter buttons display by default and a More filters button allows the end user to access additional filters as well.

The filters are based on aggregations configured in the mint_query web service in the Sinequa administration interface.

Mint Aggregations

The default filters use the following aggregations:

  • Dates
  • Sources
  • People
  • Companies
  • Places
  • Authors
  • Sizes
  • Formats
  • Languages
  • Concepts
note

The filter buttons appears in the Mint UI in the same order as the aggregations found in the mint_query web service. If you wish to reorder the filter buttons, you simply need to reorder the aggregations in your mint_query web service.

Modifying the Default Filters

  1. In your Mint workspace, go to src > app > app.config.ts.

  2. Look for the provider object that has the AGGREGATIONS_NAMES token (and potentially other aggregation names). This object will be commented out by default.

//{ provide: AGGREGATIONS_NAMES, useValue: ['Money', 'Companies', ...AGGREGATIONS_NAMES_PRESET_DEFAULT]},
note
  • The useValue property provides a static value that can be used as a dependency.

  • In Mint, the useValue property includes the AGGREGATIONS_NAMES_PRESET_DEFAULT constant. This constant includes the previously mentioned aggregations found in the default _mint_query web service.

You can remove the existing values and add different aggregation names to the useValue list.

  1. Uncomment the provider object:
{ provide: AGGREGATIONS_NAMES, useValue: ['Money', 'Companies', ...AGGREGATIONS_NAMES_PRESET_DEFAULT]},
  1. Replace all values currently found in the useValue list and add the Finance, Dates, Events, and Exectitle aggregations.
{ provide: AGGREGATIONS_NAMES, useValue: ['Finance','Dates','Event','Executive'] },
note

These aggregations have been created for you in the ** mint_query Web Service** on the Sinequa demo server.

  1. Save your changes.
note

If you followed the Connecting to Sinequa tutorial, Mint should recompile automatically. If not, execute the npm run start command in the terminal.

  1. Go to your Mint application and search for Bill Gates.

Updated Filters

There should now be different filters available.

note

As a reminder, the filter buttons appears in the Mint UI in the same order as the aggregations found in the mint_query web service. If you wish to reorder the filters, you simply need to reorder the aggregations in your mint_query web service.

For more information about filters in Mint, see the Filter documentation page.