|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.egothor.core.query.Runner
org.egothor.query.runner.ProxRunner
public class ProxRunner
The ProxRunner class is used when a user wishes to make a query involving two terms where the 2nd term must lie within n words of the 1st . For example, a user might wish to view documents where BASS lies within 2 words of GUITAR. This query would be given in the form:
(BASS 2 GUITAR) (the parentheses are required).
Field Summary | |
---|---|
TermRunner |
a
Description of the Field |
TermRunner |
b
Description of the Field |
int |
diff
Description of the Field |
int[] |
prox_a
Description of the Field |
int[] |
prox_b
Description of the Field |
Constructor Summary | |
---|---|
ProxRunner(TermRunner a,
TermRunner b,
int diff)
Constructor for the ProxRunner object |
Method Summary | |
---|---|
int |
evaluate(long uid)
Return the similarity of this object to the document with the given unique ID. |
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 |
Field Detail |
---|
public TermRunner a
public TermRunner b
public int diff
public int[] prox_a
public int[] prox_b
Constructor Detail |
---|
public ProxRunner(TermRunner a, TermRunner b, int diff)
a
- the Runner for the first termb
- the Runner for the second termdiff
- Description of the ParameterMethod Detail |
---|
public int terms()
terms
in class Runner
public java.lang.String invalidReason()
invalidReason
in class Runner
public int evaluate(long uid)
evaluate
in class Runner
uid
- the document in question
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |