|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectestraier.Condition
Abstraction of search condition.
Field Summary | |
static int |
AGITO
option: check N-gram keys skipping by three |
static int |
FAST
option: check N-gram keys skipping by two |
static int |
NOIDF
option: without TF-IDF tuning |
static int |
SIMPLE
option: with the simplified phrase |
static int |
SURE
option: check every N-gram key |
static int |
USUAL
option: check N-gram keys skipping by one |
Constructor Summary | |
Condition()
Create a search condition object. |
Method Summary | |
void |
add_attr(java.lang.String expr)
Add an expression for an attribute. |
protected void |
finalize()
Release resources. |
void |
set_max(int max)
Set the maximum number of retrieval. |
void |
set_options(int options)
Set options of retrieval. |
void |
set_order(java.lang.String expr)
Set the order. |
void |
set_phrase(java.lang.String phrase)
Set the search phrase. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AGITO
public static final int FAST
public static final int NOIDF
public static final int SIMPLE
public static final int SURE
public static final int USUAL
Constructor Detail |
public Condition()
Method Detail |
public void add_attr(java.lang.String expr)
expr
- an expression for an attribute.protected void finalize()
public void set_max(int max)
max
- the maximum number of retrieval. By default, the number of retrieval is not
limited.public void set_options(int options)
options
- options: `Condition.SURE' specifies that it checks every N-gram key,
`Condition.USUAL', which is the default, specifies that it checks N-gram keys with skipping
one key, `Condition.FAST' skips two keys, `Condition.AGITO' skips three keys,
`Condition.NOIDF' specifies not to perform TF-IDF tuning, `Condition.SIMPLE' specifies to
use simplified phrase. Each option can be specified at the same time by bitwise or. If
keys are skipped, though search speed is improved, the relevance ratio grows less.public void set_order(java.lang.String expr)
expr
- an expression for the order. By default, the order is by score descending.public void set_phrase(java.lang.String phrase)
phrase
- a search phrase.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |