|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Abstraction of search condition.
| Field Summary | |
static int |
CONDAGIT
option: check N-gram keys skipping by three |
static int |
CONDFAST
option: check N-gram keys skipping by two |
static int |
CONDNOIDF
option: without TF-IDF tuning |
static int |
CONDSIMPLE
option: with the simplified phrase |
static int |
CONDSURE
option: check every N-gram key |
static int |
CONDUSU
option: check N-gram keys skipping by one |
| Method Summary | |
void |
add_attr(java.lang.String expr)
Add an expression for an attribute. |
java.util.List |
attrs()
Get expressions for attributes. |
int |
max()
Get the maximum number of retrieval. |
int |
options()
Get options of retrieval. |
java.lang.String |
order()
Get the order expression. |
java.lang.String |
phrase()
Get the search phrase. |
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. |
| Field Detail |
public static final int CONDAGIT
public static final int CONDFAST
public static final int CONDNOIDF
public static final int CONDSIMPLE
public static final int CONDSURE
public static final int CONDUSU
| Method Detail |
public void add_attr(java.lang.String expr)
expr - an expression for an attribute.public java.util.List attrs()
public int max()
public int options()
public java.lang.String order()
public java.lang.String phrase()
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.ESTCONDSURE' specifies that it checks every N-gram key,
`Condition.ESTCONDUSU', which is the default, specifies that it checks N-gram keys with
skipping one key, `Condition.ESTCONDFAST' skips two keys, `Condition.ESTCONDAGIT' skips
three keys, `Condition.ESTCONDNOIDF' specifies not to perform TF-IDF tuning,
`Condition.ESTCONDSIMPLE' 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 | |||||||