public class ClassificationUpdateProcessorFactory extends UpdateRequestProcessorFactory
UpdateRequestProcessorFactory.RunAlways| Constructor and Description |
|---|
ClassificationUpdateProcessorFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm()
get the name of the classifier algorithm used
|
String |
getClassFieldName()
get field names used as classifier's output
|
String[] |
getInputFieldNames()
get field names used as classifier's inputs
|
UpdateRequestProcessor |
getInstance(SolrQueryRequest req,
SolrQueryResponse rsp,
UpdateRequestProcessor next) |
int |
getK()
get the the no.
|
int |
getMinDf()
get the min document frequency value to be used in case algorithm is
"knn" |
int |
getMinTf()
get the min term frequency value to be used in case algorithm is
"knn" |
void |
init(NamedList args) |
void |
setAlgorithm(String algorithm)
set the name of the classifier algorithm used
|
void |
setClassFieldName(String classFieldName)
set field names used as classifier's output
|
void |
setInputFieldNames(String[] inputFieldNames)
set field names used as classifier's inputs
|
void |
setK(int k)
set the the no.
|
void |
setMinDf(int minDf)
set the min document frequency value to be used in case algorithm is
"knn" |
void |
setMinTf(int minTf)
set the min term frequency value to be used in case algorithm is
"knn" |
public ClassificationUpdateProcessorFactory()
public void init(NamedList args)
init in interface NamedListInitializedPlugininit in class UpdateRequestProcessorFactorypublic UpdateRequestProcessor getInstance(SolrQueryRequest req, SolrQueryResponse rsp, UpdateRequestProcessor next)
getInstance in class UpdateRequestProcessorFactorypublic String[] getInputFieldNames()
public void setInputFieldNames(String[] inputFieldNames)
inputFieldNames - the input field namespublic String getClassFieldName()
public void setClassFieldName(String classFieldName)
classFieldName - the output field namepublic String getAlgorithm()
public void setAlgorithm(String algorithm)
algorithm - the classifier algorithm usedpublic int getMinTf()
"knn"public void setMinTf(int minTf)
"knn"minTf - the min term frequencypublic int getMinDf()
"knn"public void setMinDf(int minDf)
"knn"minDf - the min document frequencypublic int getK()
"knn"public void setK(int k)
"knn"k - the no. of neighbors to analyzeCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.