|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object estraier.Condition
public class Condition
Abstraction of search condition.
Field Summary | |
---|---|
static int |
AGITO
option: check N-gram keys skipping by three |
static double |
ECLDIR
eclipse tuning: on directory basis |
static double |
ECLFILE
eclipse tuning: on file basis |
static double |
ECLSERV
eclipse tuning: on server basis |
static double |
ECLSIMURL
eclipse tuning: consider URL |
static int |
FAST
option: check N-gram keys skipping by two |
static int |
ISECT
option: with the intersection phrase |
static int |
NOIDF
option: without TF-IDF tuning |
static int |
ROUGH
option: with the rough phrase |
static int |
SIMPLE
option: with the simplified phrase |
static int |
SURE
option: check every N-gram key |
static int |
UNION
option: with the union phrase |
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_auxiliary(int min)
Set permission to adopt result of the auxiliary index. |
void |
set_distinct(java.lang.String name)
Set the attribute distinction filter. |
void |
set_eclipse(double limit)
Set the lower limit of similarity eclipse. |
void |
set_mask(int mask)
Set the mask of targets of meta search. |
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. |
void |
set_skip(int skip)
Set the number of skipped documents. |
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 double ECLDIR
public static final double ECLFILE
public static final double ECLSERV
public static final double ECLSIMURL
public static final int FAST
public static final int ISECT
public static final int NOIDF
public static final int ROUGH
public static final int SIMPLE
public static final int SURE
public static final int UNION
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()
finalize
in class java.lang.Object
public void set_auxiliary(int min)
min
- the minimum hits to adopt result of the auxiliary index. If it is not more
than 0, the auxiliary index is not used. By default, it is 32.public void set_distinct(java.lang.String name)
name
- the name of an attribute to be distinct.public void set_eclipse(double limit)
limit
- the lower limit of similarity for documents to be eclipsed. Similarity is
between 0.0 and 1.0. If the limit is added by `Condition.ECLSIMURL', similarity is
weighted by URL. If the limit is `Condition.ECLSERV', similarity is ignored and documents
in the same server are eclipsed. If the limit is `Condition.ECLDIR', similarity is ignored
and documents in the same directory are eclipsed. If the limit is `Condition.ECLFILE',
similarity is ignored and documents of the same file are eclipsed.public void set_mask(int mask)
mask
- a masking number. 1 means the first target, 2 means the second target, 4 means
the third target and, power values of 2 and their summation compose the mask.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.ROUGH' specifies to use rough phrase, `Condition.UNION'
specifies to use union phrase, `Condition.ISECT' specifies to use intersection 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.public void set_skip(int skip)
skip
- the number of documents to be skipped in the search result.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |