Package org.apache.solr.ltr
Class FeatureLogger
java.lang.Object
org.apache.solr.ltr.FeatureLogger
- Direct Known Subclasses:
CSVFeatureLogger
FeatureLogger can be registered in a model and provide a strategy for logging the feature values.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FeatureLogger.FeatureFormatprotected Booleanprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFeatureLogger(FeatureLogger.FeatureFormat f, Boolean logAll) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract StringprintFeatureVector(LTRScoringQuery.FeatureInfo[] featuresInfo) voidvoidsetLogFeatures(boolean logFeatures)
-
Field Details
-
featureFormat
-
logAll
-
logFeatures
protected boolean logFeatures
-
-
Constructor Details
-
FeatureLogger
-
-
Method Details
-
printFeatureVector
-
isLoggingAll
-
setLogAll
-
setLogFeatures
public void setLogFeatures(boolean logFeatures) -
isLogFeatures
public boolean isLogFeatures()
-