|
||||||||||
| 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.OrRunner
public class OrRunner
This object represents a binary form of a OR b formula.
This Runner is used when a user wishes to query for documents
containing one word or another. For example, the user might wish to
query for documents containing BASS or GUITAR. The form of this query
would be given as:
BASS||GUITAR.
| Field Summary | |
|---|---|
Runner |
a
Description of the Field |
Runner |
b
Description of the Field |
| Constructor Summary | |
|---|---|
OrRunner(Runner a,
Runner b)
Constructor for the OrRunner object |
|
| Method Summary | |
|---|---|
int |
evaluate(long uid)
Return the calculated similarity. |
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 Runner a
public Runner b
| Constructor Detail |
|---|
public OrRunner(Runner a,
Runner b)
a - the Runner for the first queryb - the Runner for the second query| Method Detail |
|---|
public java.lang.String invalidReason()
invalidReason in class Runnerpublic int terms()
terms in class Runnerpublic int evaluate(long uid)
evaluate in class Runneruid - the unique ID of the document to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||