public class TermRunner extends Runner
| Constructor and Description |
|---|
TermRunner(double idf,
Rider r,
String field,
Token token,
int boost,
boolean req,
boolean proh)
Constructor for the TermRunner object
|
TermRunner(IListWasher washer,
double idf,
Rider r,
String field,
Token token,
int boost,
boolean req,
boolean proh)
Constructor for the TermRunner object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
evaluate(long uid)
Return the calculated similarity.
|
Proximities |
getProx()
Return a Proximities object which gives access to the proximities
inverted list for the head item in the list.
|
String |
invalidReason()
Return an explanation as to why this search is invalid.
|
int |
terms()
Description of the Method
|
public TermRunner(IListWasher washer, double idf, Rider r, String field, Token token, int boost, boolean req, boolean proh)
r, and a term that is in the given field
, its token type is name , and its text is text
.washer - Description of the Parameteridf - the inverse document frequencyr - the Rider used by this Runnerfield - Description of the Parametertoken - the token describing the search termboost - Description of the Parameterreq - Description of the Parameterproh - Description of the Parameterpublic TermRunner(double idf,
Rider r,
String field,
Token token,
int boost,
boolean req,
boolean proh)
idf - Description of the Parameterr - Description of the Parameterfield - Description of the Parametertoken - Description of the Parameterboost - Description of the Parameterreq - Description of the Parameterproh - Description of the Parameterpublic Proximities getProx()
public int terms()
public String invalidReason()
invalidReason in class Runnerpublic int evaluate(long uid)
uid , then it returns 0. Otherwise is calculates the
similarity as 1+w*idf . More details can be found in
the Runner class entry.Copyright © 2016 Egothor. All Rights Reserved.