Class DerivedConfiguration
- java.lang.Object
-
- com.yahoo.searchdefinition.derived.DerivedConfiguration
-
public class DerivedConfiguration extends java.lang.Object
A set of all derived configuration of a search definition. Use this as a facade to individual configurations when necessary.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description DerivedConfiguration(Search search, com.yahoo.config.application.api.DeployLogger deployLogger, com.yahoo.config.model.api.ModelContext.Properties deployProperties, RankProfileRegistry rankProfileRegistry, com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles, ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels)
Creates a complete derived configuration snapshot from a search definition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(java.lang.String toDirectory)
Exports a complete set of configuration-server format config files.static void
exportDocuments(com.yahoo.document.config.DocumentmanagerConfig.Builder documentManagerCfg, java.lang.String toDirectory)
static void
exportDocuments(com.yahoo.document.DocumenttypesConfig.Builder documentTypesCfg, java.lang.String toDirectory)
static void
exportQueryProfiles(com.yahoo.search.query.profile.QueryProfileRegistry queryProfileRegistry, java.lang.String toDirectory)
AttributeFields
getAttributeFields()
ImportedFields
getImportedFields()
IndexInfo
getIndexInfo()
IndexingScript
getIndexingScript()
IndexSchema
getIndexSchema()
Juniperrc
getJuniperrc()
com.yahoo.search.query.profile.QueryProfileRegistry
getQueryProfiles()
RankProfileList
getRankProfileList()
Search
getSearch()
Summaries
getSummaries()
SummaryMap
getSummaryMap()
VsmFields
getVsmFields()
VsmSummary
getVsmSummary()
void
setIndexingScript(IndexingScript script)
-
-
-
Constructor Detail
-
DerivedConfiguration
public DerivedConfiguration(Search search, com.yahoo.config.application.api.DeployLogger deployLogger, com.yahoo.config.model.api.ModelContext.Properties deployProperties, RankProfileRegistry rankProfileRegistry, com.yahoo.search.query.profile.QueryProfileRegistry queryProfiles, ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels importedModels)
Creates a complete derived configuration snapshot from a search definition.- Parameters:
search
- the search to derive a configuration from. Derived objects will be snapshots, but this argument is live. Which means that this object will be inconsistent when the given search definition is later modified.deployLogger
- aDeployLogger
for logging when doing operations on thisdeployProperties
- properties set on deployrankProfileRegistry
- aRankProfileRegistry
queryProfiles
- the query profiles of this application
-
-
Method Detail
-
export
public void export(java.lang.String toDirectory) throws java.io.IOException
Exports a complete set of configuration-server format config files.- Parameters:
toDirectory
- the directory to export to, current dir if null- Throws:
java.io.IOException
- if exporting fails, some files may still be created
-
exportDocuments
public static void exportDocuments(com.yahoo.document.config.DocumentmanagerConfig.Builder documentManagerCfg, java.lang.String toDirectory) throws java.io.IOException
- Throws:
java.io.IOException
-
exportDocuments
public static void exportDocuments(com.yahoo.document.DocumenttypesConfig.Builder documentTypesCfg, java.lang.String toDirectory) throws java.io.IOException
- Throws:
java.io.IOException
-
exportQueryProfiles
public static void exportQueryProfiles(com.yahoo.search.query.profile.QueryProfileRegistry queryProfileRegistry, java.lang.String toDirectory) throws java.io.IOException
- Throws:
java.io.IOException
-
getSummaries
public Summaries getSummaries()
-
getAttributeFields
public AttributeFields getAttributeFields()
-
getIndexingScript
public IndexingScript getIndexingScript()
-
getIndexInfo
public IndexInfo getIndexInfo()
-
setIndexingScript
public void setIndexingScript(IndexingScript script)
-
getSearch
public Search getSearch()
-
getRankProfileList
public RankProfileList getRankProfileList()
-
getVsmSummary
public VsmSummary getVsmSummary()
-
getVsmFields
public VsmFields getVsmFields()
-
getIndexSchema
public IndexSchema getIndexSchema()
-
getJuniperrc
public Juniperrc getJuniperrc()
-
getSummaryMap
public SummaryMap getSummaryMap()
-
getImportedFields
public ImportedFields getImportedFields()
-
getQueryProfiles
public com.yahoo.search.query.profile.QueryProfileRegistry getQueryProfiles()
-
-