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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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());
};