searchRequest.source().indexBoost(indexBoost.getIndexName(), indexBoost.getBoost());
/** * Sets the boost a specific index will receive when the query is executed against it. * * @param index The index to apply the boost against * @param indexBoost The boost to apply to the index */ public SearchRequestBuilder addIndexBoost(String index, float indexBoost) { sourceBuilder().indexBoost(index, indexBoost); return this; }
/** * Sets the boost a specific index will receive when the query is executed against it. * * @param index The index to apply the boost against * @param indexBoost The boost to apply to the index */ public SearchRequestBuilder addIndexBoost(String index, float indexBoost) { sourceBuilder().indexBoost(index, indexBoost); return this; }
/** * Sets the boost a specific index will receive when the query is executed against it. * * @param index The index to apply the boost against * @param indexBoost The boost to apply to the index */ public SearchRequestBuilder addIndexBoost(String index, float indexBoost) { sourceBuilder().indexBoost(index, indexBoost); return this; }
/** * Sets the boost a specific index will receive when the query is executed against it. * * @param index The index to apply the boost against * @param indexBoost The boost to apply to the index */ public SearchRequestBuilder addIndexBoost(String index, float indexBoost) { sourceBuilder().indexBoost(index, indexBoost); return this; }
/** * Sets the boost a specific index will receive when the query is executeed against it. * * @param index The index to apply the boost against * @param indexBoost The boost to apply to the index */ public SearchRequestBuilder addIndexBoost(String index, float indexBoost) { sourceBuilder().indexBoost(index, indexBoost); return this; }
public SearchRequestBuilder<JsonInput, JsonOutput> indexBoost(String index, float indexBoost) { sourceBuilder().indexBoost(index, indexBoost); return this; }
searchSourceBuilder.indexBoost(indexBoost.getIndexName(), indexBoost.getBoost());
String sBoost = indexBoost.substring(divisor + 1); try { searchSourceBuilder.indexBoost(indexName, Float.parseFloat(sBoost)); } catch (NumberFormatException e) { throw new ElasticSearchIllegalArgumentException("Illegal index boost [" + indexBoost + "], boost not a float number");
int indexBoostSize = randomIntBetween(1, 10); for (int i = 0; i < indexBoostSize; i++) { builder.indexBoost(randomAlphaOfLengthBetween(5, 20), randomFloat() * 10);