Class IndexInfo
- java.lang.Object
-
- com.yahoo.searchdefinition.derived.Derived
-
- com.yahoo.searchdefinition.derived.IndexInfo
-
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,com.yahoo.search.config.IndexInfoConfig.Producer
,Exportable
public class IndexInfo extends Derived implements com.yahoo.search.config.IndexInfoConfig.Producer
Per-index commands which should be applied to queries prior to searching- Author:
- bratseth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IndexInfo.IndexCommand
An index command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
derive(ImmutableSDField field, Search search)
Derives the content of this configuration.protected void
derive(ImmutableSDField field, Search search, boolean inPosition)
protected void
derive(Search search)
Derives the content of this configuration.void
getConfig(com.yahoo.search.config.IndexInfoConfig.Builder builder)
protected java.lang.String
getDerivedName()
boolean
hasCommand(java.lang.String indexName, java.lang.String command)
Returns whether a particular command is prsent in this index info
-
-
-
Constructor Detail
-
IndexInfo
public IndexInfo(Search search)
-
-
Method Detail
-
derive
protected void derive(Search search)
Description copied from class:Derived
Derives the content of this configuration. This default calls derive(Document) for each document and derive(SDField) for each search definition level field AND sets the name of this to the name of the input search definition
-
derive
protected void derive(ImmutableSDField field, Search search)
Description copied from class:Derived
Derives the content of this configuration. This default does nothing.
-
derive
protected void derive(ImmutableSDField field, Search search, boolean inPosition)
-
hasCommand
public boolean hasCommand(java.lang.String indexName, java.lang.String command)
Returns whether a particular command is prsent in this index info
-
getConfig
public void getConfig(com.yahoo.search.config.IndexInfoConfig.Builder builder)
- Specified by:
getConfig
in interfacecom.yahoo.search.config.IndexInfoConfig.Producer
-
getDerivedName
protected java.lang.String getDerivedName()
- Specified by:
getDerivedName
in classDerived
-
-