public IndexedMapping dynamicBoost(Class<? extends BoostStrategy> impl) { final Map<String, Object> dynamicBoost = new HashMap<String, Object>(); dynamicBoost.put("impl", impl); entity.setDynamicBoost(dynamicBoost); return this; }