public class OriginalScoreFeature extends Feature
{ "name": "originalScore", "class": "org.apache.solr.ltr.feature.OriginalScoreFeature", "params": { } }
Modifier and Type | Class and Description |
---|---|
class |
OriginalScoreFeature.OriginalScoreWeight |
Feature.FeatureWeight
Constructor and Description |
---|
OriginalScoreFeature(String name,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
OriginalScoreFeature.OriginalScoreWeight |
createWeight(IndexSearcher searcher,
boolean needsScores,
SolrQueryRequest request,
Query originalQuery,
Map<String,String[]> efi) |
LinkedHashMap<String,Object> |
paramsToMap() |
protected void |
validate()
As part of creation of a feature instance, this function confirms
that the feature parameters are valid.
|
equals, getDefaultValue, getIndex, getInstance, getName, hashCode, setDefaultValue, setIndex, toString
classHash, createWeight, rewrite, sameClassAs, toString
public LinkedHashMap<String,Object> paramsToMap()
paramsToMap
in class Feature
protected void validate() throws FeatureException
Feature
validate
in class Feature
FeatureException
- Feature Exceptionpublic OriginalScoreFeature.OriginalScoreWeight createWeight(IndexSearcher searcher, boolean needsScores, SolrQueryRequest request, Query originalQuery, Map<String,String[]> efi) throws IOException
createWeight
in class Feature
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.