Class ProxRunner

  extended by org.egothor.core.query.Runner
      extended by org.egothor.query.runner.ProxRunner
          extended by org.egothor.query.runner.enhanced.ProxRunner

public class ProxRunner
extends 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).

Leo Galambos

Field Summary
Fields inherited from class org.egothor.query.runner.ProxRunner
a, b, diff, prox_a, prox_b
Constructor Summary
ProxRunner(int model, 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.
Methods inherited from class org.egothor.query.runner.ProxRunner
invalidReason, terms
Methods inherited from class org.egothor.core.query.Runner
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ProxRunner(int model,
                  TermRunner a,
                  TermRunner b,
                  int diff)
Constructor for the ProxRunner object

model - Description of the Parameter
a - the Runner for the first term
b - the Runner for the second term
diff - Description of the Parameter
Method Detail


public int evaluate(long uid)
Return the similarity of this object to the document with the given unique ID. When any of formula variables returns non-positive value, then the evaluation is 0.

evaluate in class ProxRunner
uid - the document in question
the similarity