How to use the coveo-search-ui.ExpressionBuilder function in coveo-search-ui

To help you get started, we’ve selected a few coveo-search-ui examples, based on popular ways it is used in public projects.

github coveo / search-ui / accessibilityTest / Testing.ts View on Github external
export const addFieldEqualFilter = (field: string, filter: string | string[]) => {
  const expression = new ExpressionBuilder();
  expression.addFieldExpression(field, '==', isArray(filter) ? filter : [filter]);
  return addQueryFilter(expression.build());
};