Boost field in the new Java API Client

I am migrating old High Rest Java Api Client into Java Api Client but there are everywhere in queries of the old code, this "boost" field. I could not find out if these both fields are used in the new client by default or if we need it.

{
  "bool" : {
    "adjust_pure_negative" : true,
    "boost" : 1.0
  }
}

Should I remove it in the new client or should I add the boost 1 or adjust_pure_negative?

Hi @PodarcisMuralis

About this: What does "adjust_pure_negative" flag do?

By default the boost will be 1 but you can edit it like this:

  BoolQuery.of(b -> b
      .should()
      .must()
      .filter()
      .boost(10f)
  );