def boost_factor(factor, options = {})
      scoring = options.merge(boost_factor: factor.to_i)
      chain { criteria.update_scores scoring }
    end
def boost_factor(factor, options = {})
      scoring = options.merge(boost_factor: factor.to_i)
      chain { criteria.update_scores scoring }
    end
Adds a boost factor to the search request. All scores are
 added to the search request and combinded according to
 `boost_mode` and `score_mode`

 This probably only makes sense if you specify a filter
 for the boost factor as well

 @example
   UsersIndex.boost_factor(23, filter: { term: { foo: :bar} })
       # => {body:
              query: {
                function_score: {
                  query: { ...},
                  functions: [{
                    boost_factor: 23,
                    filter: { term: { foo: :bar } }
                  }]
                } } }