instead of using `or` with multiple `term` filters, you can use 1 `terms` filter:

```
var contenttype = [];
...
contenttype.push(key);
...
filters.push({terms: {type: contenttype}});
```