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.
  • Field Details

  • Constructor Details

    • LTRFeatureLoggerTransformerFactory

      public LTRFeatureLoggerTransformerFactory()
  • Method Details

    • 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 interface NamedListInitializedPlugin
      Overrides:
      init in class TransformerFactory
    • create

      public DocTransformer create(String name, org.apache.solr.common.params.SolrParams localparams, SolrQueryRequest req)
      Specified by:
      create in class TransformerFactory