QueryBuilder.add(BoolQueryBuilder) is undefined for the type

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

And it might be better to continue the discussion you started on the other thread?