public class FieldValueFeature extends Feature
{ "name": "rawHits", "class": "org.apache.solr.ltr.feature.FieldValueFeature", "params": { "field": "hits" } }
Modifier and Type | Class and Description |
---|---|
class |
FieldValueFeature.FieldValueFeatureWeight |
Feature.FeatureWeight
NULL_ACCOUNTABLE
Constructor and Description |
---|
FieldValueFeature(String name,
Map<String,Object> params) |
Modifier and Type | Method and Description |
---|---|
Feature.FeatureWeight |
createWeight(IndexSearcher searcher,
boolean needsScores,
SolrQueryRequest request,
Query originalQuery,
Map<String,String[]> efi) |
String |
getField() |
LinkedHashMap<String,Object> |
paramsToMap() |
void |
setField(String field) |
protected void |
validate()
As part of creation of a feature instance, this function confirms
that the feature parameters are valid.
|
defaultParamsToMap, equals, getDefaultValue, getIndex, getInstance, getName, hashCode, ramBytesUsed, setDefaultValue, setIndex, toString, visit
classHash, createWeight, rewrite, sameClassAs, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildResources
public String getField()
public void setField(String field)
public LinkedHashMap<String,Object> paramsToMap()
paramsToMap
in class Feature
protected void validate() throws FeatureException
Feature
validate
in class Feature
FeatureException
- Feature Exceptionpublic Feature.FeatureWeight createWeight(IndexSearcher searcher, boolean needsScores, SolrQueryRequest request, Query originalQuery, Map<String,String[]> efi) throws IOException
createWeight
in class Feature
IOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.