|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectestraier.pure.Condition
Abstraction of search condition.
Field Summary | |
static int |
AGITO
option: check N-gram keys skipping by three |
static int |
ETCH
option: attach keywords |
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. |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int AGITO
public static int ETCH
public static int FAST
public static int NOIDF
public static int SIMPLE
public static int SURE
public static int USUAL
Constructor Detail |
public Condition()
Method Detail |
public void add_attr(java.lang.String expr)
expr
- an expression for an attribute.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. `Condition.ETCH' specifies to attach the keyword vector. 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 |