Class LTRFeatureLoggerTransformerFactory
- java.lang.Object
-
- org.apache.solr.response.transform.TransformerFactory
-
- org.apache.solr.ltr.response.transform.LTRFeatureLoggerTransformerFactory
-
- All Implemented Interfaces:
NamedListInitializedPlugin
public class LTRFeatureLoggerTransformerFactory extends TransformerFactory
This transformer will take care to generate and append in the response the features declared in the feature store of the current reranking model, or a specified feature store. Ex.fl=id,[features store=myStore efi.user_text="ibm"]
Parameters
store
- The feature store to extract features from. If not provided it will default to the features used by your reranking model.
efi.*
- External feature information variables required by the features you are extracting.
format
- The format you want the features to be returned in. Supports (dense|sparse). Defaults to dense.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.response.transform.TransformerFactory
TransformerFactory.FieldRenamer
-
-
Field Summary
-
Fields inherited from class org.apache.solr.response.transform.TransformerFactory
defaultFactories, defaultUserArgs
-
-
Constructor Summary
Constructors Constructor Description LTRFeatureLoggerTransformerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocTransformer
create(String name, org.apache.solr.common.params.SolrParams localparams, SolrQueryRequest req)
void
init(org.apache.solr.common.util.NamedList<?> args)
void
setCsvFeatureSeparator(String csvFeatureSeparator)
void
setCsvKeyValueDelimiter(String csvKeyValueDelimiter)
void
setDefaultFormat(String defaultFormat)
void
setDefaultStore(String defaultStore)
void
setFvCacheName(String fvCacheName)
void
setLoggingModelName(String loggingModelName)
-
-
-
Method Detail
-
setFvCacheName
public void setFvCacheName(String fvCacheName)
-
setLoggingModelName
public void setLoggingModelName(String loggingModelName)
-
setDefaultStore
public void setDefaultStore(String defaultStore)
-
setDefaultFormat
public void setDefaultFormat(String defaultFormat)
-
setCsvKeyValueDelimiter
public void setCsvKeyValueDelimiter(String csvKeyValueDelimiter)
-
setCsvFeatureSeparator
public void setCsvFeatureSeparator(String csvFeatureSeparator)
-
init
public void init(org.apache.solr.common.util.NamedList<?> args)
- Specified by:
init
in interfaceNamedListInitializedPlugin
- Overrides:
init
in classTransformerFactory
-
create
public DocTransformer create(String name, org.apache.solr.common.params.SolrParams localparams, SolrQueryRequest req)
- Specified by:
create
in classTransformerFactory
-
-