#pragma once

#include <saas/util/network/address.h>
#include <saas/indexerproxy/context/document.h>
#include <saas/library/searchmap/searchmap.h>

#include <util/generic/set.h>

typedef TSet<TComparableAddress> TRoutesList;

TRoutesList GetRoutesList(const NSearchMapParser::TSearchCluster& unifiedService,
    const ISrvDispContext& dispMessage, TRoutesList& ignoreRoutes);

NSearchMapParser::TShardIndex GetShard(const NSearchMapParser::TServiceSpecificOptions& options,
    const NRTYServer::TMessage& message);
