Replace deprecated BooleanQuery constructor with builder. Also replace deprecated `search` method with the one without a filter argument, since the filter isn't used anyhow.