Search in sources :

Example 1 with LocalProvider

use of com.yahoo.vespa.model.container.search.searchchain.LocalProvider in project vespa by vespa-engine.

the class ContainerSearch method initializeSearchChains.

// public for testing
public void initializeSearchChains(Map<String, ? extends AbstractSearchCluster> searchClusters) {
    getChains().initialize(searchClusters, totalCacheSize);
    QrsCache defaultCacheOptions = getOptions().cacheSettings.get("");
    if (defaultCacheOptions != null) {
        for (LocalProvider localProvider : getChains().localProviders()) {
            localProvider.setCacheSize(defaultCacheOptions.size);
        }
    }
    for (LocalProvider localProvider : getChains().localProviders()) {
        QrsCache cacheOptions = getOptions().cacheSettings.get(localProvider.getClusterName());
        if (cacheOptions != null) {
            localProvider.setCacheSize(cacheOptions.size);
        }
    }
}
Also used : LocalProvider(com.yahoo.vespa.model.container.search.searchchain.LocalProvider)

Aggregations

LocalProvider (com.yahoo.vespa.model.container.search.searchchain.LocalProvider)1