Class RawRankProfile

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

    public class RawRankProfile
    extends java.lang.Object
    implements com.yahoo.vespa.config.search.RankProfilesConfig.Producer
    A rank profile derived from a search definition, containing exactly the features available natively in the server
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      RawRankProfile​(RankProfile rankProfile, com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles, ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels, AttributeFields attributeFields)
      Only for testing
      RawRankProfile​(RankProfile rankProfile, com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles, ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels, AttributeFields attributeFields, com.yahoo.config.model.api.ModelContext.Properties deployProperties)
      Creates a raw rank profile from the given rank profile
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<com.yahoo.collections.Pair<java.lang.String,​java.lang.String>> configProperties()
      Returns the properties of this as an unmodifiable list.
      void getConfig​(com.yahoo.vespa.config.search.RankProfilesConfig.Builder builder)  
      java.lang.String getName()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • summaryFeatureFefPropertyPrefix

        public static final java.lang.String summaryFeatureFefPropertyPrefix
        See Also:
        Constant Field Values
      • rankFeatureFefPropertyPrefix

        public static final java.lang.String rankFeatureFefPropertyPrefix
        See Also:
        Constant Field Values
    • Constructor Detail

      • RawRankProfile

        public RawRankProfile​(RankProfile rankProfile,
                              com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles,
                              ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels,
                              AttributeFields attributeFields,
                              com.yahoo.config.model.api.ModelContext.Properties deployProperties)
        Creates a raw rank profile from the given rank profile
      • RawRankProfile

        public RawRankProfile​(RankProfile rankProfile,
                              com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles,
                              ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels,
                              AttributeFields attributeFields)
        Only for testing
    • Method Detail

      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getConfig

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

        public java.util.List<com.yahoo.collections.Pair<java.lang.String,​java.lang.String>> configProperties()
        Returns the properties of this as an unmodifiable list. Note: This method is expensive.