Filter Multiple Attributes in a Search

You can apply a single search input term to multiple attributes of a service endpoint by setting up a filterCriterion with many conditions.

You can use filterCriterion to filter data displayed in a Table, List, or another collection component in Visual Builder. For information on how to create a search filter in a Table, see Create a Search Filter for a Table. You can use this configuration for a List View component as well. For detailed information on filtering data, see Filter Data Displayed in a Component.

Once you have your search filter, simply extend the filter criteria. For example, to filter data in the Traveler and Destination table columns, your filter criteria might look as shown here:
{
"criteria": [
{
"value": "{{ $page.variables.filterVar }}",
"op": "{{ \"$eq\"\n }}",
"attribute": "{{ \"traveler\"\n }}"
},
{
"value": "{{ $page.variables.filterVar }}",
"op": "{{ \"$eq\"\n }}",
"attribute": "{{ \"destination\"\n }}"
}
],
"op": "{{ \"$or\"\n }}"
}