Search in sources :

Example 1 with ShardSearchTransportRequest

use of org.elasticsearch.search.internal.ShardSearchTransportRequest in project elasticsearch by elastic.

the class AbstractSearchAsyncAction method buildShardSearchRequest.

public final ShardSearchTransportRequest buildShardSearchRequest(ShardIterator shardIt, ShardRouting shard) {
    AliasFilter filter = aliasFilter.get(shard.index().getUUID());
    assert filter != null;
    float indexBoost = concreteIndexBoosts.getOrDefault(shard.index().getUUID(), DEFAULT_INDEX_BOOST);
    return new ShardSearchTransportRequest(request, shardIt.shardId(), getNumShards(), filter, indexBoost, startTime);
}
Also used : AliasFilter(org.elasticsearch.search.internal.AliasFilter) ShardSearchTransportRequest(org.elasticsearch.search.internal.ShardSearchTransportRequest)

Aggregations

AliasFilter (org.elasticsearch.search.internal.AliasFilter)1 ShardSearchTransportRequest (org.elasticsearch.search.internal.ShardSearchTransportRequest)1