|
||||||||||
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.PhraseRunner
public class PhraseRunner
The PhraseRunner 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 | |
---|---|
PhraseScan |
scanner
Description of the Field |
TermRunner[] |
set
Description of the Field |
Constructor Summary | |
---|---|
PhraseRunner(TermRunner[] a)
Constructor for the PhraseRunner 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[] set
public PhraseScan scanner
Constructor Detail |
---|
public PhraseRunner(TermRunner[] a)
a
- the Runner arrayMethod 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 |