|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.core.query.Runner org.egothor.query.runner.TermRunner
public class TermRunner
The TermRunner object represents a binary form of a query that consists of one term.
Constructor Summary | |
---|---|
TermRunner(double idf,
Rider r,
java.lang.String field,
Token token,
int boost,
boolean req,
boolean proh)
Constructor for the TermRunner object |
|
TermRunner(IListWasher washer,
double idf,
Rider r,
java.lang.String field,
Token token,
int boost,
boolean req,
boolean proh)
Constructor for the TermRunner object. |
Method Summary | |
---|---|
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. |
java.lang.String |
invalidReason()
Return an explanation as to why this search is invalid. |
int |
terms()
Description of the Method |
Methods inherited from class org.egothor.core.query.Runner |
---|
run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TermRunner(IListWasher washer, double idf, Rider r, java.lang.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, java.lang.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 ParameterMethod Detail |
---|
public Proximities getProx()
public int terms()
terms
in class Runner
public java.lang.String invalidReason()
invalidReason
in class Runner
public 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.
evaluate
in class Runner
uid
- the unique ID of the document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |