Class RankProfileList

  • All Implemented Interfaces:
    com.yahoo.config.ConfigInstance.Producer, Exportable, com.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer, com.yahoo.vespa.config.search.RankProfilesConfig.Producer

    public class RankProfileList
    extends Derived
    implements com.yahoo.vespa.config.search.RankProfilesConfig.Producer, com.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer
    The derived rank profiles of a search definition
    Author:
    bratseth
    • Constructor Detail

      • RankProfileList

        public RankProfileList​(Search search,
                               RankingConstants rankingConstants,
                               AttributeFields attributeFields,
                               RankProfileRegistry rankProfileRegistry,
                               com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles,
                               ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels,
                               com.yahoo.config.model.api.ModelContext.Properties deployProperties)
        Creates a rank profile
        Parameters:
        search - the search definition this is a rank profile from
        attributeFields - the attribute fields to create a ranking for
    • Method Detail

      • getRankProfiles

        public java.util.Map<java.lang.String,​RawRankProfile> getRankProfiles()
      • getRankProfile

        public RawRankProfile getRankProfile​(java.lang.String name)
        Returns the raw rank profile with the given name, or null if it is not present
      • sendConstantsTo

        public void sendConstantsTo​(java.util.Collection<? extends AbstractService> services)
      • getDerivedName

        public java.lang.String getDerivedName()
        Specified by:
        getDerivedName in class Derived
      • getConfig

        public void getConfig​(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)
        Specified by:
        getConfig in interface com.yahoo.vespa.config.search.RankProfilesConfig.Producer
      • getConfig

        public void getConfig​(com.yahoo.vespa.config.search.core.RankingConstantsConfig.Builder builder)
        Specified by:
        getConfig in interface com.yahoo.vespa.config.search.core.RankingConstantsConfig.Producer